Lines Matching refs:unpack
23 from struct import unpack
181 info.boot_magic = unpack('8s', args.boot_img.read(8))[0].decode()
183 kernel_ramdisk_second_info = unpack('9I', args.boot_img.read(9 * 4))
196 os_version_patch_level = unpack('I', args.boot_img.read(1 * 4))[0]
208 info.product_name = cstr(unpack('16s',
210 info.cmdline = cstr(unpack('512s', args.boot_img.read(512))[0].decode())
212 info.extra_cmdline = cstr(unpack('1024s',
215 info.cmdline = cstr(unpack('1536s',
219 info.recovery_dtbo_size = unpack('I', args.boot_img.read(1 * 4))[0]
220 info.recovery_dtbo_offset = unpack('Q', args.boot_img.read(8))[0]
221 info.boot_header_size = unpack('I', args.boot_img.read(4))[0]
226 info.dtb_size = unpack('I', args.boot_img.read(4))[0]
227 info.dtb_load_address = unpack('Q', args.boot_img.read(8))[0]
233 info.boot_signature_size = unpack('I', args.boot_img.read(4))[0]
376 info.boot_magic = unpack('8s', args.boot_img.read(8))[0].decode()
377 info.header_version = unpack('I', args.boot_img.read(4))[0]
378 info.page_size = unpack('I', args.boot_img.read(4))[0]
379 info.kernel_load_address = unpack('I', args.boot_img.read(4))[0]
380 info.ramdisk_load_address = unpack('I', args.boot_img.read(4))[0]
381 info.vendor_ramdisk_size = unpack('I', args.boot_img.read(4))[0]
382 info.cmdline = cstr(unpack('2048s', args.boot_img.read(2048))[0].decode())
383 info.tags_load_address = unpack('I', args.boot_img.read(4))[0]
384 info.product_name = cstr(unpack('16s', args.boot_img.read(16))[0].decode())
385 info.header_size = unpack('I', args.boot_img.read(4))[0]
386 info.dtb_size = unpack('I', args.boot_img.read(4))[0]
387 info.dtb_load_address = unpack('Q', args.boot_img.read(8))[0]
401 info.vendor_ramdisk_table_size = unpack('I', args.boot_img.read(4))[0]
402 vendor_ramdisk_table_entry_num = unpack('I', args.boot_img.read(4))[0]
403 vendor_ramdisk_table_entry_size = unpack('I', args.boot_img.read(4))[0]
404 info.vendor_bootconfig_size = unpack('I', args.boot_img.read(4))[0]
416 ramdisk_size = unpack('I', args.boot_img.read(4))[0]
417 ramdisk_offset = unpack('I', args.boot_img.read(4))[0]
418 ramdisk_type = unpack('I', args.boot_img.read(4))[0]
419 ramdisk_name = cstr(unpack(
422 board_id = unpack(
471 boot_magic = unpack('8s', args.boot_img.read(8))[0].decode()