Searched refs:newbuffer (Results 1 – 6 of 6) sorted by relevance
/third_party/skia/third_party/externals/libjpeg-turbo/ |
D | jdatadst-tj.c | 44 unsigned char *newbuffer; /* newly allocated buffer */ member 106 free(dest->newbuffer); in empty_mem_output_buffer() 108 dest->newbuffer = nextbuffer; in empty_mem_output_buffer() 168 dest->newbuffer = NULL; in jpeg_mem_dest_tj() 190 dest->newbuffer = *outbuffer = (unsigned char *)malloc(OUTPUT_BUF_SIZE); in jpeg_mem_dest_tj() 191 if (dest->newbuffer == NULL) in jpeg_mem_dest_tj()
|
D | jdatadst.c | 54 unsigned char *newbuffer; /* newly allocated buffer */ member 146 free(dest->newbuffer); in empty_mem_output_buffer() 148 dest->newbuffer = nextbuffer; in empty_mem_output_buffer() 279 dest->newbuffer = NULL; in jpeg_mem_dest() 283 dest->newbuffer = *outbuffer = (unsigned char *)malloc(OUTPUT_BUF_SIZE); in jpeg_mem_dest() 284 if (dest->newbuffer == NULL) in jpeg_mem_dest()
|
/third_party/icu/icu4c/source/test/intltest/ |
D | textfile.cpp | 170 char* newbuffer = (char*) uprv_malloc(mincapacity); in ensureCapacity() local 171 if (newbuffer == 0) { in ensureCapacity() 175 uprv_strncpy(newbuffer, buffer, capacity); in ensureCapacity() 178 buffer = newbuffer; in ensureCapacity()
|
/third_party/vulkan-loader/loader/ |
D | cJSON.c | 138 char *newbuffer; in ensure() local 145 newbuffer = (char *)cJSON_malloc(pAllocator, newsize); in ensure() 146 if (!newbuffer) { in ensure() 151 if (newbuffer) memcpy(newbuffer, p->buffer, p->length); in ensure() 154 p->buffer = newbuffer; in ensure() 155 return newbuffer + p->offset; in ensure()
|
/third_party/cJSON/ |
D | cJSON.c | 446 unsigned char *newbuffer = NULL; in ensure() local 497 newbuffer = (unsigned char*)p->hooks.reallocate(p->buffer, newsize); in ensure() 498 if (newbuffer == NULL) in ensure() 510 newbuffer = (unsigned char*)p->hooks.allocate(newsize); in ensure() 511 if (!newbuffer) in ensure() 520 memcpy(newbuffer, p->buffer, p->offset + 1); in ensure() 524 p->buffer = newbuffer; in ensure() 526 return newbuffer + p->offset; in ensure()
|
/third_party/python/Objects/ |
D | unicodeobject.c | 14106 PyObject *newbuffer; in _PyUnicodeWriter_PrepareInternal() local 14148 newbuffer = PyUnicode_New(newlen, maxchar); in _PyUnicodeWriter_PrepareInternal() 14149 if (newbuffer == NULL) in _PyUnicodeWriter_PrepareInternal() 14151 _PyUnicode_FastCopyCharacters(newbuffer, 0, in _PyUnicodeWriter_PrepareInternal() 14157 newbuffer = resize_compact(writer->buffer, newlen); in _PyUnicodeWriter_PrepareInternal() 14158 if (newbuffer == NULL) in _PyUnicodeWriter_PrepareInternal() 14161 writer->buffer = newbuffer; in _PyUnicodeWriter_PrepareInternal() 14165 newbuffer = PyUnicode_New(writer->size, maxchar); in _PyUnicodeWriter_PrepareInternal() 14166 if (newbuffer == NULL) in _PyUnicodeWriter_PrepareInternal() 14168 _PyUnicode_FastCopyCharacters(newbuffer, 0, in _PyUnicodeWriter_PrepareInternal() [all …]
|