Buffer.extractDup

Extracts a copy of at most @size bytes the data at @offset into newly-allocated memory. @dest must be freed using g_free() when done.

class Buffer
void
extractDup
(
size_t offset
,
size_t size
,
out ubyte[] dest
)

Parameters

offset size_t

the offset to extract

size size_t

the size to extract

dest ubyte[]

A pointer where the destination array will be written. Might be %NULL if the size is 0.

Meta

Since

1.0.10