Implemented binary emitting without the binary tag

This commit is contained in:
jbeder
2010-10-28 21:53:54 +00:00
parent d6e56a0941
commit 24dc58b68d
6 changed files with 85 additions and 0 deletions

View File

@@ -724,5 +724,19 @@ namespace YAML
PostAtomicWrite();
return *this;
}
Emitter& Emitter::Write(const _Binary& binary)
{
if(!good())
return *this;
// TODO: write tag !!binary
PreAtomicWrite();
EmitSeparationIfNecessary();
Utils::WriteBinary(m_stream, binary.data, binary.size);
PostAtomicWrite();
return *this;
}
}