pdf-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [pdf-devel] Stream memory buffer size


From: gerel
Subject: Re: [pdf-devel] Stream memory buffer size
Date: Mon, 22 Sep 2008 18:26:09 -0700 (PDT)

 > Date: Mon, 22 Sep 2008 20:36:38 +0200
 > From: address@hidden
 > 
 >    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

[Prev in Thread] Current Thread [Next in Thread]