Is there any particular reason that the Read API is defined without a mean to return the number of bytes actually read?
CPresult (*Read)(
CPhandle hContent,
CPbyte *pData,
CPuint nSize);
This makes API not being able to support partial read while using user supplied buffer, I would propose a trivial revision to,
CPresult (*Read)(
CPhandle hContent,
CPbyte *pData,
CPuint * nSize);
Similar to that of ReadBuffer, can any one comment on this?
Regards,
/MG