Buffer.extract

Copy @size bytes starting from @offset in @buffer to @dest.

class Buffer
size_t
extract
(
size_t offset
,
void* dest
,
size_t size
)

Parameters

offset size_t

the offset to extract

dest void*

the destination address

size size_t

the size to extract

Return Value

Type: size_t

The amount of bytes extracted. This value can be lower than @size when @buffer did not contain enough data.

Meta