peek


Description:

public size_t peek (uint8[] buffer, size_t offset = 0)

Peeks in the buffered input, copying buffer.length bytes of data from offset bytes in the buffered input into buffer.

Parameters:

this

a [class@Gio.BufferedInputStream]

buffer

a pointer to an allocated chunk of memory, which must be at least buffer.length bytes long

offset

offset into the buffered input to peek from, or zero to peek from the next byte in the buffered input onwards

count

number of bytes to peek

Returns:

the number of bytes copied, which may be zero