Gio.BufferedInputStream.prototype.peek
function peek(buffer: ByteArray, offset: Number(gsize)): Number(gsize) { // Gjs wrapper for g_buffered_input_stream_peek() }
Peeks in the buffer, copying data of size count into buffer, offset offset bytes.
- buffer
a pointer to an allocated chunk of memory
- offset
a #gsize
- Returns
a #gsize of the number of bytes peeked, or -1 on error.