Is it possible to emit and read(parse) binary data(image, file etc)?
Like this is shown here:
http://yaml.org/type/binary.html
How can I do this in yaml-cpp?
Is it possible to emit and read(parse) binary data(image, file etc)? Like this is
Share
As of revision 425, yes! (for emitting)
outputs
The syntax is
I wasn’t sure how to pass the byte array:
charisn’t necessarily one byte, so I’m not sure how portable the algorithm is. What format is your byte array typically in?(The problem is that
uint8_tisn’t standard C++ yet, so I’m a little worried about using it.)As for parsing,
yaml-cppwill certainly parse the data as a string, but there’s no decoding algorithm yet.