/* Returns: (transfer full): a string with the data that was read before encountering any of the stop characters. Set @length to a #gsize to get the length of the string. This function will return NULL on an error.  */
gchar* g_data_input_stream_read_until_finish(GDataInputStream *stream, GAsyncResult *result, gsize *length, GError **error)
/* Returns: (transfer full): a string with the data that was read before encountering any of the stop characters. Set @length to a #gsize to get the length of the string. This function will return NULL on an error.  */
gchar* g_data_input_stream_read_until_finish(GDataInputStream *stream, GAsyncResult *result, gsize *length, GError **error)
{
  g_return_val_if_fail (g_task_is_valid (result, stream), NULL);
  return g_data_input_stream_read_finish (stream, result, length, error);
}