Like version 425 , yes! (for emission)
YAML::Emitter emitter;
emitter << YAML::Binary("Hello, World!", 13);
std::cout << emitter.c_str();
exits
--- !!binary "SGVsbG8sIFdvcmxkIQ=="
Syntax
YAML::Binary(const char *bytes, std::size_t size);
I was not sure how to pass an array of bytes: charnot necessarily one byte, so I'm not sure how portable the algorithm is. What format is your byte array, usually in?
( , uint8_t ++, .)
, yaml-cpp , .