Lines Matching refs:write
45 f.write(pack(str(pad) + 'x'))
72 args.output.write(pack('8s', BOOT_MAGIC))
73 args.output.write(pack('10I',
84 args.output.write(pack('16s', args.board.encode())) # asciiz product name
85 args.output.write(pack('512s', args.cmdline[:512].encode()))
99 args.output.write(img_id)
100 args.output.write(pack('1024s', args.cmdline[512:].encode()))
103 args.output.write(pack('I', filesize(args.recovery_dtbo))) # size in bytes
105 args.output.write(pack('Q', get_recovery_dtbo_offset(args))) # recovery dtbo offset
107 args.output.write(pack('Q', 0)) # Will be set to 0 for devices without a recovery dtbo
111 args.output.write(pack('I', BOOT_IMAGE_HEADER_V1_SIZE))
113 args.output.write(pack('I', BOOT_IMAGE_HEADER_V2_SIZE))
116 args.output.write(pack('I', filesize(args.dtb))) # size in bytes
117 args.output.write(pack('Q', args.base + args.dtb_offset)) # dtb physical load address
140 f_out.write(f_in.read())