Searched refs:hdr (Results 1 – 1 of 1) sorted by relevance
40 boot_img_hdr_v3 hdr; in ExtractRamdiskRaw() local41 if (!ReadFullyAtOffset(bootimg.get(), &hdr, sizeof(hdr), 0)) in ExtractRamdiskRaw()43 if (0 != memcmp(hdr.magic, BOOT_MAGIC, BOOT_MAGIC_SIZE)) in ExtractRamdiskRaw()46 if (hdr.header_version < 3) in ExtractRamdiskRaw()47 return Error() << "Unsupported header version V" << hdr.header_version; in ExtractRamdiskRaw()50 auto kernel_size_bytes = (hdr.kernel_size + 4096 - 1) / 4096 * 4096; in ExtractRamdiskRaw()53 std::string ramdisk_content(hdr.ramdisk_size, '\0'); in ExtractRamdiskRaw()55 hdr.ramdisk_size, ramdisk_offset)) in ExtractRamdiskRaw()