DataSourceImpl.peek

Read from the source but do not modify the internal offset. Consecutive calls to peek() will return portions of the source starting at the same position.

interface DataSourceImpl
const
size_t
peek
(
ubyte* output
,
size_t length
,)

Parameters

output ubyte*

the ubyte array to write the output to

length size_t

the length of the ubyte array out

peek_offset size_t

the offset into the stream to read at

Return Value

Type: size_t

length in bytes that was actually read and put into out

Meta