Bytes.newFromBytes

Creates a #GBytes which is a subsection of another #GBytes. The @offset + @length may not be longer than the size of @bytes.

A reference to @bytes will be held by the newly created #GBytes until the byte data is no longer needed.

class Bytes
newFromBytes
(
size_t offset
,
size_t length
)

Parameters

offset size_t

offset which subsection starts at

length size_t

length of subsection

Return Value

Type: Bytes

a new #GBytes

Meta

Since

2.32