pdf-devel
[Top][All Lists]
Advanced

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

Re: [pdf-devel] resize the buffer


From: David Vazquez
Subject: Re: [pdf-devel] resize the buffer
Date: Mon, 15 Dec 2008 23:09:32 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

address@hidden writes:

> pdf_status_t pdf_stm_buffer_resize (pdf_stm_buffer_t BUFFER, pdf_size_t 
> NEW_SIZE);
>
> Resize a given buffer. 
>
> If NEW_SIZE is larger than the actual size of @var{buffer} then BUFFER->size
> will be increased, while both BUFFER->rp and BUFFER->wp will remain
> unchanged. 
>
> If NEW_SIZE is shorter than the actual size of BUFFER then the memory
> pointed by BUFFER->data will be truncated, BUFFER->size will be
> adjusted to the new value and both BUFFER->rp and BUFFER->wp will be
> set to BUFFER->size if they are exceeding the new size of the buffer.
>
> Would it fit your needs?

It is well-suited for me. :-)




reply via email to

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