- // returns number of bytes read or ofsInvalid on error
- off_t Read(void *pBuf, off_t nCount);
- // returns true on success
- uint Write(const void *pBuf, uint nCount);
+ // returns number of bytes read or wxInvalidOffset on error
+ ssize_t Read(void *pBuf, size_t nCount);
+ // returns the number of bytes written
+ size_t Write(const void *pBuf, size_t nCount);