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

@@ -111,6 +111,16 @@ namespace YAML
inline _Comment Comment(const std::string content) {
return _Comment(content);
}
struct _Binary {
_Binary(const char *data_, std::size_t size_): data(data_), size(size_) {}
const char *data;
std::size_t size;
};
inline _Binary Binary(const char *data, std::size_t size) {
return _Binary(data, size);
}
}
#endif // EMITTERMANIP_H_62B23520_7C8E_11DE_8A39_0800200C9A66