BufferedInputStream.peek

Peeks in the buffer, copying data of size count into buffer, offset offset bytes.

class BufferedInputStream
size_t
peek
(
ubyte[] buffer
,
size_t offset
)

Parameters

buffer ubyte[]

a pointer to an allocated chunk of memory

offset size_t

Return Value

Type: size_t

a gsize of the number of bytes peeked, or -1 on error.