I load data with function:
gssize g_input_stream_read (GInputStream *stream,
void *buffer, gsize count,
GCancellable *cancellable,
GError **error);
What is ma value of buffer parameter. How can I know what should be equal to buffer?
I make:
#define LOAD_BUFFER_SIZE 65536
But when i try to load image, only visible part of the image.
Thank you.
The
bufferis a pointer to the memory you have allocated to contain whatg_input_stream_readreads. It must be big enough to containcountbytes.Could you expand this question, by showing with code samples how you are allocating the memory for
bufferand how you calledg_input_stream_readexactly?Here is documentation on using g_input_stream_read.