56 const bufsize_t allocSize = v_size + v_padding;
57 std::cerr <<
"Trying to resize. Ptr: " << std::hex << (
void*)
content <<
" New size: " << allocSize << std::endl;
60 BYTE*
content =
reinterpret_cast<BYTE*
>(::realloc((
void*)this->content, allocSize));
63 std::cerr <<
"Error!" << std::endl;
64 throw BufferException(
"Cannot allocate buffer of size: 0x" + QString::number(allocSize, 16));
67 std::cerr <<
"Ptr: " << std::hex << (
void*)
content <<
" Additional size: " << sizeDiff <<
" BaseContentSize: " << this->
contentSize << std::endl;
70 std::cerr <<
"Ptr: " << std::hex << (
void*)
content <<
" New size: " << allocSize << std::endl;