Adapter.take

Returns a freshly allocated buffer containing the first @nbytes bytes of the @adapter. The returned bytes will be flushed from the adapter.

Caller owns returned value. g_free after usage.

Free-function: g_free

class Adapter
ubyte[]
take
(
size_t nbytes
)

Parameters

nbytes size_t

the number of bytes to take

Return Value

Type: ubyte[]

oven-fresh hot data, or %NULL if @nbytes bytes are not available

Meta