mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
gdatainputstream: Document the returned string is always nul-terminated
Signed-off-by: Philip Withnall <withnall@endlessm.com> Reviewed-by: nobody https://bugzilla.gnome.org/show_bug.cgi?id=742124
This commit is contained in:
parent
0664b61782
commit
2ffba0e262
@ -1316,6 +1316,8 @@ g_data_input_stream_read_until_finish (GDataInputStream *stream,
|
||||
* Note that @stop_chars may contain '\0' if @stop_chars_len is
|
||||
* specified.
|
||||
*
|
||||
* The returned string will always be nul-terminated on success.
|
||||
*
|
||||
* 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
|
||||
@ -1446,6 +1448,8 @@ g_data_input_stream_read_upto_async (GDataInputStream *stream,
|
||||
* have to use g_data_input_stream_read_byte() to get it before calling
|
||||
* g_data_input_stream_read_upto_async() again.
|
||||
*
|
||||
* The returned string will always be nul-terminated on success.
|
||||
*
|
||||
* 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
|
||||
|
Loading…
Reference in New Issue
Block a user