> Date: Mon, 22 Sep 2008 20:36:38 +0200
 > From: [EMAIL PROTECTED]
 > 
 >    I think that we need a function to get the size of a memory buffer
 >    (pdf-stm-buffer.h), something like,
 >    ##
 >    pdf_size_t pdf_stm_buffer_size (const pdf_stm_buffer_t buffer);
 >    ###
 > 
 >    What do you think ?
 > 
 > Hm. It is true that the stm code is full of 
 > 
 >      buf->wp - buf->rp
 > 
 > to get the available data for read and of
 > 
 >      buf->size - buf->wp
 > 
 > to get the available space for write.
 > 
 > Maybe we could define some macros. Would that be fine for you?

Well, I thought that the idea was to treat a buffer as an object, but now that I
see code using buffers, it seems that I'm free to access its members, right ?

-gerel


Reply via email to