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

void Sample::WriteCatEntry ( FileWriter writer ) const

Write a cat entry to a writer.

writerplace to write the cat entry to

Definition at line 205 of file sample.cpp.

References GetFilename(), FileWriter::GetFilename(), GetName(), GetOffset(), FileWriter::GetPos(), sample_data, FileWriter::WriteByte(), WriteSample(), and WriteString().

      assert(this->sample_data != NULL);

      if (writer.GetPos() != this->GetOffset()) throw "Invalid offset when writing file " + writer.GetFilename();

      WriteString(this->GetName(), writer);

      /* Some kind of separator byte */

      WriteString(this->GetFilename(), writer);

Here is the call graph for this function:

Generated by  Doxygen 1.6.0   Back to index