Stream size error in HPDF_MemStream_WriteFunc?
Brought to you by:
takeshi_kanno,
tony2001
Assuming that the size field of the stream is supposed to represent the contents of the stream, then HPDF_MemStream_WriteFunc appears to have an error in that the size field of the memory stream is not updated. Nor is the memory stream's size field updated in the call it makes to HPDF_MemStream_InWrite.
Presumably the stream's size field should be updated with the siz parameter just before HPDF_MemStream_WriteFunc returns HPDF_OK.
stream->size += siz;
Does this make sense?