get_writable


Description:

[ Version ( since = "1.14" ) ]
public unowned Buffer? get_writable (uint idx)

Gets the buffer at idx, ensuring it is a writable buffer.

You must make sure that idx does not exceed the number of buffers available.

Parameters:

this

a (writable) BufferList

idx

the index

Returns:

the buffer at idx in group. The returned buffer remains valid as long as this is valid and the buffer is not removed from the list.