Gets a [struct@GLib.
Bytes] containing data from this starting at offset
.
The size of the returned chunk is unspecified. You can iterate through the entire body by first calling [[email protected]_chunk] with an offset of 0, and then on each successive call, increment the offset by the length of the previously-returned chunk.
If offset
is greater than or equal to the total length of this, then the return value
depends on whether or not [[email protected]] has been called or not; if it has, then [[email protected]_chunk] will return
a 0-length chunk (indicating the end of this). If it has not, then [[email protected]_chunk] will
return null (indicating that this may still potentially have more
data, but that data is not currently available).
this | |
offset |
an offset |
a Bytes |