Searched refs:header (Results 1 – 7 of 7) sorted by relevance
/bootable/recovery/mtdutils/ |
D | flash_image.c | 74 char header[HEADER_SIZE]; in main() local 75 int headerlen = TEMP_FAILURE_RETRY(read(fd, header, sizeof(header))); in main() 88 } else if (checklen == headerlen && !memcmp(header, check, headerlen)) { in main() 120 wrote = mtd_write_data(out, header, headerlen); in main()
|
/bootable/recovery/applypatch/ |
D | bspatch.c | 137 unsigned char* header = (unsigned char*) patch->data + patch_offset; in ApplyBSDiffPatchMem() local 138 if (memcmp(header, "BSDIFF40", 8) != 0) { in ApplyBSDiffPatchMem() 144 ctrl_len = offtin(header+8); in ApplyBSDiffPatchMem() 145 data_len = offtin(header+16); in ApplyBSDiffPatchMem() 146 *new_size = offtin(header+24); in ApplyBSDiffPatchMem()
|
D | bsdiff.c | 238 u_char header[32]; in bsdiff() local 271 memcpy(header,"BSDIFF40",8); in bsdiff() 272 offtout(0, header + 8); in bsdiff() 273 offtout(0, header + 16); in bsdiff() 274 offtout(newsize, header + 24); in bsdiff() 275 if (fwrite(header, 32, 1, pf) != 1) in bsdiff() 370 offtout(len-32, header + 8); in bsdiff() 385 offtout(newsize - len, header + 16); in bsdiff() 400 if (fwrite(header, 32, 1, pf) != 1) in bsdiff()
|
D | imgpatch.c | 45 char* header = patch->data; in ApplyImagePatch() local 54 if (memcmp(header, "IMGDIFF2", 8) != 0) { in ApplyImagePatch() 59 int num_chunks = Read4(header+8); in ApplyImagePatch()
|
D | applypatch.c | 957 char* header = patch->data; in GenerateTarget() local 965 memcmp(header, "BSDIFF40", 8) == 0) { in GenerateTarget() 969 memcmp(header, "IMGDIFF2", 8) == 0) { in GenerateTarget()
|
/bootable/recovery/tools/ota/ |
D | convert-to-bmp.py | 47 header = struct.pack(BMP_HEADER_FMT, variable 68 f.write(header)
|
/bootable/recovery/minui/ |
D | resources.cpp | 52 unsigned char header[8]; in open_png() local 65 bytesRead = fread(header, 1, sizeof(header), fp); in open_png() 66 if (bytesRead != sizeof(header)) { in open_png() 71 if (png_sig_cmp(header, 0, sizeof(header))) { in open_png() 94 png_set_sig_bytes(*png_ptr, sizeof(header)); in open_png()
|