mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-24 03:02:10 +01:00
Update docs for g_memory_output_stream_get_size.
2008-03-31 Alexander Larsson <alexl@redhat.com> * gmemoryoutputstream.c: Update docs for g_memory_output_stream_get_size. svn path=/branches/glib-2-16/; revision=6793
This commit is contained in:
parent
4df1459858
commit
49bf006ff2
@ -1,3 +1,8 @@
|
|||||||
|
2008-03-31 Alexander Larsson <alexl@redhat.com>
|
||||||
|
|
||||||
|
* gmemoryoutputstream.c:
|
||||||
|
Update docs for g_memory_output_stream_get_size.
|
||||||
|
|
||||||
2008-03-30 Matthias Clasen <mclasen@redhat.com>
|
2008-03-30 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* gfileenumerator.c:
|
* gfileenumerator.c:
|
||||||
|
@ -232,12 +232,21 @@ g_memory_output_stream_get_data (GMemoryOutputStream *ostream)
|
|||||||
* g_memory_output_stream_get_size:
|
* g_memory_output_stream_get_size:
|
||||||
* @ostream: a #GMemoryOutputStream
|
* @ostream: a #GMemoryOutputStream
|
||||||
*
|
*
|
||||||
* Gets the size of the loaded data from the @ostream.
|
* Gets the size of the currently allocated data area (availible from
|
||||||
|
* g_memory_output_stream_get_data()). If the stream isn't
|
||||||
|
* growable (no realloc was passed to g_memory_output_stream_new()) then
|
||||||
|
* this is the max size of the stream and further writes
|
||||||
|
* will return G_IO_ERROR_NO_SPACE.
|
||||||
*
|
*
|
||||||
* Note that the returned size may become invalid on the next
|
* Note that for growable streams the returned size may become invalid on
|
||||||
* write or truncate operation on the stream.
|
* the next write or truncate operation on the stream.
|
||||||
*
|
*
|
||||||
* Returns: the size of the stream's data
|
* Note, this does not return the number of bytes written to the stream.
|
||||||
|
* In glib 2.18 this is availible with g_memory_output_stream_get_data_size(),
|
||||||
|
* but for 2.16 you have to use g_seekable_seek() to G_SEEK_END
|
||||||
|
* and call g_seekable_tell() to achive this.
|
||||||
|
*
|
||||||
|
* Returns: the number of bytes allocated for the data buffer
|
||||||
*/
|
*/
|
||||||
gsize
|
gsize
|
||||||
g_memory_output_stream_get_size (GMemoryOutputStream *ostream)
|
g_memory_output_stream_get_size (GMemoryOutputStream *ostream)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user