Currently, ArrowBufferResize() and ArrowBitmapResize() update the capacity of the underlying buffer but do not update the size. This was documented and is consistent with Arrow C++'s BufferBuilder but inconsistent with std::vector, Arrow C++'s PoolBuffer, and user expectations given the name of the function.
After this PR, ArrowBufferResize() and ArrowBitmapResize() update the size_bytes of the underlying buffer.
Currently,
ArrowBufferResize()
andArrowBitmapResize()
update the capacity of the underlying buffer but do not update the size. This was documented and is consistent with Arrow C++'sBufferBuilder
but inconsistent withstd::vector
, Arrow C++'sPoolBuffer
, and user expectations given the name of the function.After this PR,
ArrowBufferResize()
andArrowBitmapResize()
update thesize_bytes
of the underlying buffer.This is a breaking change.