Add DHTB header support

This commit is contained in:
topjohnwu
2018-01-29 22:16:02 +08:00
parent a58d3ea04d
commit 7cfc24d68f
7 changed files with 150 additions and 88 deletions

View File

@ -31,6 +31,8 @@ format_t check_fmt(const void *buf) {
return MTK;
} else if (memcmp(buf, DTB_MAGIC, 4) == 0) {
return DTB;
} else if (memcmp(buf, DHTB_MAGIC, 8) == 0) {
return DHTB;
} else {
return UNKNOWN;
}