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

static void WriteString ( const string  str,
FileWriter writer 
) [static]

Write a string (byte length including termination, actual data) to a writer.

strthe string to write
writerthe writer to write to

Definition at line 74 of file sample.cpp.

References FileWriter::WriteByte(), and FileWriter::WriteRaw().

Referenced by Sample::WriteCatEntry().

      uint8_t str_len = (uint8_t)(str.length() + 1);
      writer.WriteRaw((const uint8_t *)str.c_str(), str_len);

Here is the call graph for this function:

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index