mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
Add GI annotations to GMemory{Input|Output}Stream
This commit is contained in:
parent
53fee54b4f
commit
ed5790913e
@ -203,9 +203,9 @@ g_memory_input_stream_new (void)
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* g_memory_input_stream_new_from_data:
|
* g_memory_input_stream_new_from_data:
|
||||||
* @data: input data
|
* @data: (array length=len) (element-type guint8): input data
|
||||||
* @len: length of the data, may be -1 if @data is a nul-terminated string
|
* @len: length of the data, may be -1 if @data is a nul-terminated string
|
||||||
* @destroy: function that is called to free @data, or %NULL
|
* @destroy: (allow-none): function that is called to free @data, or %NULL
|
||||||
*
|
*
|
||||||
* Creates a new #GMemoryInputStream with data in memory of a given size.
|
* Creates a new #GMemoryInputStream with data in memory of a given size.
|
||||||
*
|
*
|
||||||
@ -229,9 +229,9 @@ g_memory_input_stream_new_from_data (const void *data,
|
|||||||
/**
|
/**
|
||||||
* g_memory_input_stream_add_data:
|
* g_memory_input_stream_add_data:
|
||||||
* @stream: a #GMemoryInputStream
|
* @stream: a #GMemoryInputStream
|
||||||
* @data: input data
|
* @data: (array length=len) (element-type guint8): input data
|
||||||
* @len: length of the data, may be -1 if @data is a nul-terminated string
|
* @len: length of the data, may be -1 if @data is a nul-terminated string
|
||||||
* @destroy: function that is called to free @data, or %NULL
|
* @destroy: (allow-none): function that is called to free @data, or %NULL
|
||||||
*
|
*
|
||||||
* Appends @data to data that can be read from the input stream
|
* Appends @data to data that can be read from the input stream
|
||||||
*/
|
*/
|
||||||
|
@ -194,7 +194,7 @@ g_memory_output_stream_class_init (GMemoryOutputStreamClass *klass)
|
|||||||
G_PARAM_STATIC_STRINGS));
|
G_PARAM_STATIC_STRINGS));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* GMemoryOutputStream:realloc-function:
|
* GMemoryOutputStream:realloc-function: (skip)
|
||||||
*
|
*
|
||||||
* Function with realloc semantics called to enlarge the buffer.
|
* Function with realloc semantics called to enlarge the buffer.
|
||||||
*
|
*
|
||||||
@ -209,7 +209,7 @@ g_memory_output_stream_class_init (GMemoryOutputStreamClass *klass)
|
|||||||
G_PARAM_STATIC_STRINGS));
|
G_PARAM_STATIC_STRINGS));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* GMemoryOutputStream:destroy-function:
|
* GMemoryOutputStream:destroy-function: (skip)
|
||||||
*
|
*
|
||||||
* Function called with the buffer as argument when the stream is destroyed.
|
* Function called with the buffer as argument when the stream is destroyed.
|
||||||
*
|
*
|
||||||
@ -328,7 +328,7 @@ g_memory_output_stream_init (GMemoryOutputStream *stream)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* g_memory_output_stream_new:
|
* g_memory_output_stream_new: (skip)
|
||||||
* @data: pointer to a chunk of memory to use, or %NULL
|
* @data: pointer to a chunk of memory to use, or %NULL
|
||||||
* @size: the size of @data
|
* @size: the size of @data
|
||||||
* @realloc_function: a function with realloc() semantics (like g_realloc())
|
* @realloc_function: a function with realloc() semantics (like g_realloc())
|
||||||
@ -376,7 +376,7 @@ g_memory_output_stream_new (gpointer data,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* g_memory_output_stream_get_data: (skip)
|
* g_memory_output_stream_get_data:
|
||||||
* @ostream: a #GMemoryOutputStream
|
* @ostream: a #GMemoryOutputStream
|
||||||
*
|
*
|
||||||
* Gets any loaded data from the @ostream.
|
* Gets any loaded data from the @ostream.
|
||||||
@ -384,7 +384,7 @@ g_memory_output_stream_new (gpointer data,
|
|||||||
* Note that the returned pointer may become invalid on the next
|
* Note that the returned pointer may become invalid on the next
|
||||||
* write or truncate operation on the stream.
|
* write or truncate operation on the stream.
|
||||||
*
|
*
|
||||||
* Returns: pointer to the stream's data
|
* Returns: (transfer none): pointer to the stream's data
|
||||||
**/
|
**/
|
||||||
gpointer
|
gpointer
|
||||||
g_memory_output_stream_get_data (GMemoryOutputStream *ostream)
|
g_memory_output_stream_get_data (GMemoryOutputStream *ostream)
|
||||||
@ -398,7 +398,7 @@ 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 currently allocated data area (availible from
|
* Gets the size of the currently allocated data area (available from
|
||||||
* g_memory_output_stream_get_data()). If the stream isn't
|
* g_memory_output_stream_get_data()). If the stream isn't
|
||||||
* growable (no realloc was passed to g_memory_output_stream_new()) then
|
* growable (no realloc was passed to g_memory_output_stream_new()) then
|
||||||
* this is the maximum size of the stream and further writes
|
* this is the maximum size of the stream and further writes
|
||||||
|
Loading…
Reference in New Issue
Block a user