[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [pdf-devel] Fsys read/write return value.
From: |
Michael Gold |
Subject: |
Re: [pdf-devel] Fsys read/write return value. |
Date: |
Thu, 14 May 2009 22:24:31 -0400 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
On Thu, May 14, 2009 at 23:00:50 -0300, gerel wrote:
...
> I suggest getting rid of the ELEM_SIZE+ELEM_COUNT variables. And, if a bigger
> than 1 octet should be read for buffering issues (fread/fwrite), that
> should be managed by the implementation and not published by the API.
>
> OTOH, I'd add a pdf_status_t variable either as an output parameter,
> or as a return value (and pass a pointer for returning the written/read size).
> We need a status flag.
Just copy the pdf_stm_read prototype, which has all the necessary
parameters:
pdf_status_t pdf_fsys_file_read( pdf_fsys_file_t file,
pdf_char_t *buf,
pdf_size_t bytes,
pdf_size_t *read_bytes )
-- Michael
signature.asc
Description: Digital signature