[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [pdf-devel] Stream memory buffer size
From: |
jemarch |
Subject: |
Re: [pdf-devel] Stream memory buffer size |
Date: |
Mon, 22 Sep 2008 20:36:38 +0200 |
User-agent: |
Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (Shijō) APEL/10.6 Emacs/23.0.60 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) |
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?