Refactored the base64 binary to its own space with a unified class that (will) be used for parsing (in addition to emitting)

This commit is contained in:
Jesse Beder
2012-01-21 01:18:37 -06:00
parent e145488547
commit 6105d4cfeb
7 changed files with 148 additions and 49 deletions

View File

@@ -865,7 +865,7 @@ namespace YAML
return *this;
}
Emitter& Emitter::Write(const _Binary& binary)
Emitter& Emitter::Write(const Binary& binary)
{
Write(SecondaryTag("binary"));
@@ -874,7 +874,7 @@ namespace YAML
PreAtomicWrite();
EmitSeparationIfNecessary();
Utils::WriteBinary(m_stream, binary.data, binary.size);
Utils::WriteBinary(m_stream, binary);
PostAtomicWrite();
return *this;
}