Searched refs:new_buffer_size (Results 1 – 6 of 6) sorted by relevance
34 bool CFX_CodecMemory::TryResize(size_t new_buffer_size) { in TryResize() argument36 uint8_t* pNewBuf = FX_TryRealloc(uint8_t, pOldBuf, new_buffer_size); in TryResize()37 if (new_buffer_size && !pNewBuf) { in TryResize()42 size_ = new_buffer_size; in TryResize()
33 bool TryResize(size_t new_buffer_size);
80 size_t new_buffer_size = args_buffer_size + key.size() + value.size() + 2; in AddArg() local81 args_buffer = static_cast<char*>(realloc(args_buffer, new_buffer_size)); in AddArg()87 args_buffer[new_buffer_size - 1] = '\0'; in AddArg()89 args_buffer_size = static_cast<uint32_t>(new_buffer_size); in AddArg()
1347 long new_buffer_size; in xmlparse_buffer_size_setter() local1353 new_buffer_size = PyLong_AsLong(v); in xmlparse_buffer_size_setter()1354 if (new_buffer_size <= 0) { in xmlparse_buffer_size_setter()1361 if (new_buffer_size == self->buffer_size) { in xmlparse_buffer_size_setter()1366 if (new_buffer_size > INT_MAX) { in xmlparse_buffer_size_setter()1383 self->buffer = PyMem_Malloc(new_buffer_size); in xmlparse_buffer_size_setter()1388 self->buffer_size = new_buffer_size; in xmlparse_buffer_size_setter()
1619 long new_buffer_size; in xmlparse_setattr() local1625 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()
604 size_t new_buffer_size = send_buffer_.size() - data_size; in UpdateSend() local609 memmove(&send_buffer_[0], &send_buffer_[data_size], new_buffer_size); in UpdateSend()611 send_buffer_.resize(new_buffer_size); in UpdateSend()