peek


Description:

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

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

Parameters:

this

a BufferedInputStream

buffer

a pointer to an allocated chunk of memory

offset

a size_t

count

a size_t

Returns:

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