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

Attachment: signature.asc
Description: Digital signature

Reply via email to