Home
last modified time | relevance | path

Searched refs:buf (Results 1 – 12 of 12) sorted by relevance

/bootable/recovery/minzip/
DBits.h233 INLINE int readUtf8String(unsigned char const** ppSrc, char* buf, size_t bufLen) in readUtf8String() argument
238 memcpy(buf, *ppSrc, copyLen); in readUtf8String()
239 buf[copyLen] = '\0'; in readUtf8String()
254 char* buf; in readNewUtf8String() local
256 buf = (char*) malloc(length+1); in readNewUtf8String()
258 memcpy(buf, *ppSrc, length); in readNewUtf8String()
259 buf[length] = '\0'; in readNewUtf8String()
264 return buf; in readNewUtf8String()
271 INLINE void set1(unsigned char* buf, unsigned char val) in set1() argument
273 *buf = (unsigned char)(val); in set1()
[all …]
DZip.c632 char *buf; member
641 memcpy(args->buf, data, dataLen); in copyProcessFunction()
642 args->buf += dataLen; in copyProcessFunction()
653 char *buf, int bufLen) in mzReadZipEntry() argument
658 args.buf = buf; in mzReadZipEntry()
752 char *buf; member
765 bool firstTime = (helper->buf == NULL); in targetEntryPath()
775 newBuf = (char *)realloc(helper->buf, needLen); in targetEntryPath()
779 helper->buf = newBuf; in targetEntryPath()
786 char *p = helper->buf; in targetEntryPath()
[all …]
DZip.h120 char* buf, int bufLen);
/bootable/recovery/mtdutils/
Dflash_image.c38 char buf[1024]; in die() local
39 vsnprintf(buf, sizeof(buf), msg, args); in die()
43 strlcat(buf, ": ", sizeof(buf)); in die()
44 strlcat(buf, strerror(err), sizeof(buf)); in die()
47 fprintf(stderr, "%s\n", buf); in die()
48 ALOGE("%s\n", buf); in die()
101 char buf[HEADER_SIZE]; in main() local
102 memset(buf, 0, headerlen); in main()
103 int wrote = mtd_write_data(out, buf, headerlen); in main()
107 while ((len = TEMP_FAILURE_RETRY(read(fd, buf, sizeof(buf)))) > 0) { in main()
[all …]
Dmtdutils.c73 char buf[2048]; in mtd_scan_partitions() local
111 nbytes = TEMP_FAILURE_RETRY(read(fd, buf, sizeof(buf) - 1)); in mtd_scan_partitions()
116 buf[nbytes] = '\0'; in mtd_scan_partitions()
129 bufp = buf; in mtd_scan_partitions()
/bootable/recovery/applypatch/
Dbspatch.c67 static off_t offtin(u_char *buf) in offtin() argument
71 y=buf[7]&0x7F; in offtin()
72 y=y*256;y+=buf[6]; in offtin()
73 y=y*256;y+=buf[5]; in offtin()
74 y=y*256;y+=buf[4]; in offtin()
75 y=y*256;y+=buf[3]; in offtin()
76 y=y*256;y+=buf[2]; in offtin()
77 y=y*256;y+=buf[1]; in offtin()
78 y=y*256;y+=buf[0]; in offtin()
80 if(buf[7]&0x80) y=-y; in offtin()
[all …]
Dbsdiff.c195 static void offtout(off_t x,u_char *buf) in offtout() argument
201 buf[0]=y%256;y-=buf[0]; in offtout()
202 y=y/256;buf[1]=y%256;y-=buf[1]; in offtout()
203 y=y/256;buf[2]=y%256;y-=buf[2]; in offtout()
204 y=y/256;buf[3]=y%256;y-=buf[3]; in offtout()
205 y=y/256;buf[4]=y%256;y-=buf[4]; in offtout()
206 y=y/256;buf[5]=y%256;y-=buf[5]; in offtout()
207 y=y/256;buf[6]=y%256;y-=buf[6]; in offtout()
208 y=y/256;buf[7]=y%256; in offtout()
210 if(x<0) buf[7]|=0x80; in offtout()
[all …]
/bootable/recovery/minadbd/
Dfuse_adb_provider_test.cpp83 char buf[1]; in TEST() local
85 reinterpret_cast<uint8_t*>(buf), 1)); in TEST()
/bootable/recovery/
Dui.cpp252 char buf; in IsUsbConnected() local
254 int connected = (TEMP_FAILURE_RETRY(read(fd, &buf, 1)) == 1) && (buf == 'C'); in IsUsbConnected()
Drecovery.cpp233 char buf[MAX_ARG_LENGTH]; in get_args() local
235 if (!fgets(buf, sizeof(buf), fp)) break; in get_args()
236 token = strtok(buf, "\r\n"); in get_args()
301 char buf[4096]; in copy_log_file() local
303 while ((bytes = fread(buf, 1, sizeof(buf), source_fp)) != 0) { in copy_log_file()
304 fwrite(buf, 1, bytes, dest_fp); in copy_log_file()
Dbootloader.cpp149 struct stat buf; in wait_for_device() local
152 ret = stat(fn, &buf); in wait_for_device()
Dscreen_ui.cpp510 char buf[256]; in Print() local
513 vsnprintf(buf, 256, fmt, ap); in Print()
516 fputs(buf, stdout); in Print()
520 for (const char* ptr = buf; *ptr != '\0'; ++ptr) { in Print()