| Top |
| CattleBuffer * | cattle_buffer_new () |
| void | cattle_buffer_set_contents () |
| void | cattle_buffer_set_contents_full () |
| void | cattle_buffer_set_value () |
| gint8 | cattle_buffer_get_value () |
| gulong | cattle_buffer_get_size () |
CattleBuffer *
cattle_buffer_new (gulong size);
Create and initialize a new memory buffer.
void cattle_buffer_set_contents (CattleBuffer *buffer,gint8 *contents);
Set the contents of a memory buffer.
The size of contents
is assumed to be the same as the size of buffer
.
[skip]
void cattle_buffer_set_contents_full (CattleBuffer *buffer,gint8 *contents,gulong size);
Set the contents of the memory buffer.
This method exists mainly for bindings; cattle_buffer_set_contents() is
more convenient when writing C code.
[rename-to cattle_buffer_set_contents]
void cattle_buffer_set_value (CattleBuffer *buffer,gulong position,gint8 value);
Set the value of a specific byte inside the memory buffer.
The value of position
must be smaller than the size of the
memory buffer, as returned by cattle_buffer_get_size().
gint8 cattle_buffer_get_value (CattleBuffer *buffer,gulong position);
Get the value of a specific byte inside the memory buffer.
The value of position
must be smaller than the size of the
memory buffer, as returned by cattle_buffer_get_size().
gulong
cattle_buffer_get_size (CattleBuffer *buffer);
Get the size of the memory buffer.