get_sizes_range


Description:

public size_t get_sizes_range (uint idx, int length, out size_t offset, out size_t maxsize)

Gets the total size of length memory blocks stating from idx in this.

When not null, offset will contain the offset of the data in the memory block in this at idx and maxsize will contain the sum of the size and offset and the amount of extra padding on the memory block at idx + length -1. offset and maxsize can be used to resize the buffer memory blocks with resize_range.

Parameters:

this

a Buffer.

idx

an index

length

a length

offset

a pointer to the offset

maxsize

a pointer to the maxsize

Returns:

total size of length memory blocks starting at idx in this.




2022 vala-language.org