Home
last modified time | relevance | path

Searched refs:newbuffer (Results 1 – 3 of 3) sorted by relevance

/AliOS-Things-master/components/SDL2/src/image/external/jpeg-9b/
A Djdatadst.c50 unsigned char * newbuffer; /* newly allocated buffer */ member
138 if (dest->newbuffer != NULL) in empty_mem_output_buffer()
139 free(dest->newbuffer); in empty_mem_output_buffer()
141 dest->newbuffer = nextbuffer; in empty_mem_output_buffer()
258 dest->newbuffer = NULL; in jpeg_mem_dest()
262 dest->newbuffer = *outbuffer = (unsigned char *) malloc(OUTPUT_BUF_SIZE); in jpeg_mem_dest()
263 if (dest->newbuffer == NULL) in jpeg_mem_dest()
/AliOS-Things-master/components/linkkit/infra/
A Dinfra_cjson.c969 unsigned char *newbuffer = NULL; in ensure() local
1009 newbuffer = (unsigned char *)p->hooks.reallocate(p->buffer, newsize); in ensure()
1010 if (newbuffer == NULL) { in ensure()
1019 newbuffer = (unsigned char *)p->hooks.allocate(newsize); in ensure()
1020 if (!newbuffer) { in ensure()
1027 if (newbuffer) { in ensure()
1028 memcpy(newbuffer, p->buffer, p->offset + 1); in ensure()
1033 p->buffer = newbuffer; in ensure()
1035 return newbuffer + p->offset; in ensure()
/AliOS-Things-master/components/cjson/src/
A DcJSON.c375 unsigned char *newbuffer = NULL; in ensure() local
426 newbuffer = (unsigned char*)p->hooks.reallocate(p->buffer, newsize); in ensure()
427 if (newbuffer == NULL) in ensure()
439 newbuffer = (unsigned char*)p->hooks.allocate(newsize); in ensure()
440 if (!newbuffer) in ensure()
448 if (newbuffer) in ensure()
450 memcpy(newbuffer, p->buffer, p->offset + 1); in ensure()
455 p->buffer = newbuffer; in ensure()
457 return newbuffer + p->offset; in ensure()

Completed in 12 milliseconds