Home
last modified time | relevance | path

Searched refs:new_buffer_size (Results 1 – 7 of 7) sorted by relevance

/external/pdfium/core/fxcodec/
Dcfx_codec_memory.cpp32 bool CFX_CodecMemory::TryResize(size_t new_buffer_size) { in TryResize() argument
34 uint8_t* pNewBuf = FX_TryRealloc(uint8_t, pOldBuf, new_buffer_size); in TryResize()
35 if (new_buffer_size && !pNewBuf) { in TryResize()
40 size_ = new_buffer_size; in TryResize()
Dcfx_codec_memory.h30 bool TryResize(size_t new_buffer_size);
/external/llvm-project/compiler-rt/test/asan/TestCases/Windows/
Drtlallocateheap_zero.cpp35 SIZE_T new_buffer_size = buffer_size * 2; in main() local
46 …uffer = (char *)RtlReAllocateHeap_ptr(GetProcessHeap(), HEAP_ZERO_MEMORY, buffer, new_buffer_size); in main()
53 for (SIZE_T i = buffer_size; i < new_buffer_size; ++i) { in main()
/external/perfetto/src/trace_processor/
Dtp_metatrace.h65 size_t new_buffer_size = args_buffer_size + key.size() + value.size() + 2; in AddArg() local
66 args_buffer = static_cast<char*>(realloc(args_buffer, new_buffer_size)); in AddArg()
72 args_buffer[new_buffer_size - 1] = '\0'; in AddArg()
74 args_buffer_size = static_cast<uint32_t>(new_buffer_size); in AddArg()
/external/python/cpython3/Modules/
Dpyexpat.c1305 long new_buffer_size; in xmlparse_buffer_size_setter() local
1311 new_buffer_size = PyLong_AsLong(v); in xmlparse_buffer_size_setter()
1312 if (new_buffer_size <= 0) { in xmlparse_buffer_size_setter()
1319 if (new_buffer_size == self->buffer_size) { in xmlparse_buffer_size_setter()
1324 if (new_buffer_size > INT_MAX) { in xmlparse_buffer_size_setter()
1341 self->buffer = PyMem_Malloc(new_buffer_size); in xmlparse_buffer_size_setter()
1346 self->buffer_size = new_buffer_size; in xmlparse_buffer_size_setter()
/external/python/cpython2/Modules/
Dpyexpat.c1619 long new_buffer_size; in xmlparse_setattr() local
1625 new_buffer_size=PyInt_AS_LONG(v); in xmlparse_setattr()
1627 if (new_buffer_size == self->buffer_size) { in xmlparse_setattr()
1631 if (new_buffer_size <= 0) { in xmlparse_setattr()
1637 if (new_buffer_size > INT_MAX) { in xmlparse_setattr()
1652 self->buffer = malloc(new_buffer_size); in xmlparse_setattr()
1657 self->buffer_size = new_buffer_size; in xmlparse_setattr()
/external/webrtc/rtc_base/
Dvirtual_socket_server.cc923 size_t new_buffer_size = socket->send_buffer_.size() - data_size; in SendTcp() local
929 new_buffer_size); in SendTcp()
931 socket->send_buffer_.resize(new_buffer_size); in SendTcp()