Lines Matching refs:to_bytes
87 ret += int(fixed_pattern).to_bytes(2, "little")
88 ret += int(offset).to_bytes(2, "little")
89 ret += int(ivt_offset).to_bytes(4, "little")
109 ret += cflags.to_bytes(2, "little")
110 ret += sha_type.to_bytes(2, "little")
111 ret += magic_no.to_bytes(4, "little")
112 ret += image_size.to_bytes(4, "little")
113 ret += fw_version.to_bytes(4, "little")
114 ret += flash_location.to_bytes(4, "little")
115 ret += crc.to_bytes(4, "little")
117 ret += x.to_bytes(4, "little")
118 ret += counter.to_bytes(4, "little")
120 ret += x.to_bytes(4, "little")
161 img[236:240] = chk.to_bytes(4, "little")
175 img[20:24] = crc.to_bytes(4, "little")