mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 07:23:41 +02:00
New functions for efficient access to buffer and simple single byte reads.
2007-11-27 Juerg Billeter <j@bitron.ch> * gbufferedinputstream.c: (g_buffered_input_stream_peek_buffer), (g_buffered_input_stream_read_byte): * gbufferedinputstream.h: New functions for efficient access to buffer and simple single byte reads. * gdatainputstream.c: (scan_for_newline), (scan_for_chars), (g_data_input_stream_read_until): * gdatainputstream.h: Use peek_buffer to avoid memcpy in scan_for_newline, implement read_until with multiple stop chars. svn path=/trunk/; revision=5952
This commit is contained in:
committed by
Jürg Billeter
parent
2490a699be
commit
6d071b4ab6
@@ -89,6 +89,8 @@ gsize g_buffered_input_stream_peek (GBufferedInputStream *st
|
||||
void *buffer,
|
||||
gsize offset,
|
||||
gsize count);
|
||||
const void* g_buffered_input_stream_peek_buffer (GBufferedInputStream *stream,
|
||||
gsize *count);
|
||||
|
||||
gssize g_buffered_input_stream_fill (GBufferedInputStream *stream,
|
||||
gssize count,
|
||||
@@ -104,6 +106,10 @@ gssize g_buffered_input_stream_fill_finish (GBufferedInputStream *st
|
||||
GAsyncResult *result,
|
||||
GError **error);
|
||||
|
||||
int g_buffered_input_stream_read_byte (GBufferedInputStream *stream,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
Reference in New Issue
Block a user