Buffer.extractDup

Extracts a copy of at most @size bytes the data at @offset into a #GBytes. @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.

Meta

Since

1.0.10