X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbinarywriter.cpp;h=d1433304c251744a7a51c702a2b80b73b3d24139;hb=8955db30f9cd1c1566b349da29e669f065f84e36;hp=ffdc040f115565bbb18239ee9f2c14a137507fde;hpb=19179a622c1de88de5ed7047643eec79f285bf2a;p=libs%2Fdatafile.git diff --git a/source/binarywriter.cpp b/source/binarywriter.cpp index ffdc040..d143330 100644 --- a/source/binarywriter.cpp +++ b/source/binarywriter.cpp @@ -2,6 +2,7 @@ #include #include "binarywriter.h" #include "binfloat.h" +#include "output.h" #include "statement.h" using namespace std; @@ -9,7 +10,7 @@ using namespace std; namespace Msp { namespace DataFile { -BinaryWriter::BinaryWriter(IO::Base &o): +BinaryWriter::BinaryWriter(Output &o): WriterMode(o), next_kwd_id(1), next_str_id(1), @@ -125,7 +126,7 @@ void BinaryWriter::write_string(const StringType::Store &s) else { write_int(s.size()); - out.write(s.data(), s.size()); + out.write(s); } }