Gio.BufferedInputStream.prototype.peek_buffer
function peek_buffer(): [return_value: ByteArray, count: Number(gsize)] { // Gjs wrapper for g_buffered_input_stream_peek_buffer() }
Returns the buffer with the currently available bytes. The returned buffer must not be modified and will become invalid when reading from the stream or filling the buffer.
- return_value
read-only buffer
- count
a #gsize to get the number of bytes available in the buffer