take


Description:

[ CCode ( array_length = false ) ]
public uint8[]? take (size_t nbytes)

Returns a freshly allocated buffer containing the first return.length bytes of the this.

The returned bytes will be flushed from the adapter.

Caller owns returned value. g_free after usage.

Free-function: g_free

Parameters:

this

a Adapter

nbytes

the number of bytes to take

Returns:

oven-fresh hot data, or null if return.length bytes are not available




2022 vala-language.org