Buffer.extractDup

Extracts a copy of at most size bytes the data at offset into newly-allocated memory. dest must be freed using glib.global.gfree 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.