/* Returns: (array length=count) (element-type guint8) (transfer none): read-only buffer  */
const void* g_buffered_input_stream_peek_buffer(GBufferedInputStream *stream, gsize *count)
/* Returns: (array length=count) (element-type guint8) (transfer none): read-only buffer  */
const void* g_buffered_input_stream_peek_buffer(GBufferedInputStream *stream, gsize *count)
{
  GBufferedInputStreamPrivate *priv;
  g_return_val_if_fail (G_IS_BUFFERED_INPUT_STREAM (stream), NULL);
  priv = stream->priv;
  if (count)
    *count = priv->end - priv->pos;
  return priv->buffer + priv->pos;
}