Add g_data_input_stream_read_upto{,async,finish}
authorRyan Lortie <desrt@desrt.ca>
Tue, 23 Mar 2010 06:12:01 +0000 (01:12 -0500)
committerRyan Lortie <desrt@desrt.ca>
Mon, 13 Sep 2010 17:14:25 +0000 (13:14 -0400)
commit2e78d07f86d70de274f126a3ff00bd4af90a5c90
treea44f84e078aa25aa48164cf053a875d00ced4ae3
parent0ecfc6e1f9fa3439f733fc75cc462218a0a1974e
Add g_data_input_stream_read_upto{,async,finish}

These functions are meant to replace the read_until() flavour, with the
following improvements:

  - consistency between the synchronous and asynchronous versions as to
    if the separator character is read (it never is).

  - support for using a nul byte as a separator character by way of
    addition of a length parameter which allows stop_chars to be treated
    as a byte array rather than a nul-terminated string.

The read_until() functions are not yet formally deprecated, but a note
has been added to the documentation warning not to use them as they will
be in the future.

This is bug #584284.
docs/reference/gio/gio-sections.txt
gio/gdatainputstream.c
gio/gdatainputstream.h
gio/gio.symbols
gio/tests/data-input-stream.c