@@ -32,14 +32,30 @@ * It is part of the memory pool of the OFFile. */ - (uint8_t*)readNBytes: (size_t)size; /** - * Writes from a buffer into the file. + * Writes from a buffer into the stream. * - * \param buf The buffer from which the data is written to the file + * \param buf The buffer from which the data is written to the stream * \param size The size of the data that should be written * \return The number of bytes written */ - (size_t)writeNBytes: (size_t)size - fromBuffer: (uint8_t*)buf; + fromBuffer: (const uint8_t*)buf; + +/** + * Writes a C string into the stream, without the trailing zero. + * + * \param str The C string from which the data is written to the stream + * \return The number of bytes written + */ +- (size_t)writeCString: (const char*)str; + +/** + * Writes a C string into the stream, without the trailing zero. + * + * \param str The wide C string from which the data is written to the stream + * \return The number of bytes written + */ +- (size_t)writeWideCString: (const wchar_t*)str; @end