Lines Matching refs:write
45 f.write(pack(str(pad) + 'x'))
72 args.output.write(pack('8s', BOOT_MAGIC))
75 args.output.write(pack('10I',
86 args.output.write(pack('16s', args.board.encode())) # asciiz product name
87 args.output.write(pack('512s', args.cmdline[:512].encode()))
101 args.output.write(img_id)
102 args.output.write(pack('1024s', args.cmdline[512:].encode()))
105 args.output.write(pack('I', filesize(args.recovery_dtbo))) # size in bytes
107 args.output.write(pack('Q', get_recovery_dtbo_offset(args))) # recovery dtbo offset
109 args.output.write(pack('Q', 0)) # Will be set to 0 for devices without a recovery dtbo
113 args.output.write(pack('I', BOOT_IMAGE_HEADER_V1_SIZE))
115 args.output.write(pack('I', BOOT_IMAGE_HEADER_V2_SIZE))
118 args.output.write(pack('I', filesize(args.dtb))) # size in bytes
119 args.output.write(pack('Q', args.base + args.dtb_offset)) # dtb physical load address
142 f_out.write(f_in.read())