[glib] Add doc note about read_until() inconsistency.
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Add doc note about read_until() inconsistency.
- Date: Tue, 23 Mar 2010 15:02:28 +0000 (UTC)
commit fd448dd7ceeb4be93f2cfea54a78e0564a3718f0
Author: Ryan Lortie <desrt desrt ca>
Date: Tue Mar 23 10:01:53 2010 -0500
Add doc note about read_until() inconsistency.
See bug 584284 for more information.
gio/gdatainputstream.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/gio/gdatainputstream.c b/gio/gdatainputstream.c
index 2407637..4a380f7 100644
--- a/gio/gdatainputstream.c
+++ b/gio/gdatainputstream.c
@@ -856,6 +856,9 @@ scan_for_chars (GDataInputStream *stream,
* Reads a string from the data input stream, up to the first
* occurrence of any of the stop characters.
*
+ * Note that, in contrast to g_data_input_stream_read_until_async(),
+ * this function consumes the stop character that it finds.
+ *
* Returns: 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.
@@ -1158,6 +1161,10 @@ g_data_input_stream_read_line_async (GDataInputStream *stream,
* The asynchronous version of g_data_input_stream_read_until().
* It is an error to have two outstanding calls to this function.
*
+ * Note that, in contrast to g_data_input_stream_read_until(),
+ * this function does not consume the stop character that it finds. You
+ * must read it for yourself.
+ *
* When the operation is finished, @callback will be called. You
* can then call g_data_input_stream_read_until_finish() to get
* the result of the operation.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]