The
g_read_data()
function reads
length
bytes of data from the provider attached to consumer
cp,
starting at offset
offset.
The buffer returned from
g_read_data()
is allocated with
g_malloc(),
so it should be freed by the caller with
g_free()
after use.
If the operation fails, an error value will be stored in the
error
argument if it is not
NULL.
The
g_write_data()
function writes
length
bytes of data from the buffer pointed to by
ptr
to the provider attached to consumer
cp,
starting at offset
offset.