[ 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
this |
a Adapter |
nbytes |
the number of bytes to take |
oven-fresh hot data, or |