/* Returns: a #GOutputStream with an internal buffer set to @size.  */
GOutputStream* g_buffered_output_stream_new_sized(GOutputStream *base_stream, gsize size)
/* Returns: a #GOutputStream with an internal buffer set to @size.  */
GOutputStream* g_buffered_output_stream_new_sized(GOutputStream *base_stream, gsize size)
{
  GOutputStream *stream;
  g_return_val_if_fail (G_IS_OUTPUT_STREAM (base_stream), NULL);
  stream = g_object_new (G_TYPE_BUFFERED_OUTPUT_STREAM,
                         "base-stream", base_stream,
                         "buffer-size", size,
                         NULL);
  return stream;
}