Read() reads the requested amount of data into a buffer. Will read up to, but not necessarily, [length] bytes. On return, length is set to the number of bytes actually read. buffer *must* be large enough for max value of length.
Implements CATStream. Definition at line 162 of file CATStreamFile.cpp. References CAT_ERR_FILE_NOT_OPEN, CAT_ERR_FILE_READ, CAT_STAT_FILE_AT_EOF, CAT_SUCCESS, CATASSERT, CATRESULT, CATRESULTFILE, fFileHandle, fFilename, and IsOpen(). Referenced by CATStreamRAM::FromFile(), and CATDLLInjector::StartDLLWithProcess().
|