Set the offset and total size of the memory blocks in @buffer.
the offset adjustment
the new size or -1 to just adjust the offset
See Implementation
Set the offset and total size of the memory blocks in @buffer.