Logo Search packages:      
Sourcecode: catcodec version File versions  Download package

void FileReader::ReadRaw ( uint8_t *  in,
size_t  amount 
)

Read a number of raw bytes from the stream.

Parameters:
inthe buffer where to put the data
amountthe amount of bytes to read

Definition at line 60 of file io.cpp.

References file, and filename.

Referenced by ReadByte(), Sample::ReadCatEntry(), Sample::ReadSample(), and ReadString().

{
      if (fread(in, 1, amount, this->file) != amount) {
            throw "Unexpected end of " + this->filename;
      }
}

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index