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?





Reply via email to