get_sizes


Description:

public size_t get_sizes (out size_t offset, out size_t maxsize)

Gets the total size of the memory blocks in this.

When not null, offset will contain the offset of the data in the first memory block in this and maxsize will contain the sum of the size and offset and the amount of extra padding on the last memory block. offset and maxsize can be used to resize the buffer memory blocks with resize.

Parameters:

this

a Buffer.

offset

a pointer to the offset

maxsize

a pointer to the maxsize

Returns:

total size of the memory blocks in this.