mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 20:51:16 +00:00
Switched YAML::Binary interface to use unsigned chars, not chars
This commit is contained in:
@@ -347,7 +347,7 @@ namespace YAML
|
||||
return true;
|
||||
}
|
||||
|
||||
bool WriteBinary(ostream& out, const char *data, std::size_t size)
|
||||
bool WriteBinary(ostream& out, const unsigned char *data, std::size_t size)
|
||||
{
|
||||
static const char encoding[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
||||
const char PAD = '=';
|
||||
|
@@ -22,7 +22,7 @@ namespace YAML
|
||||
bool WriteAnchor(ostream& out, const std::string& str);
|
||||
bool WriteTag(ostream& out, const std::string& str, bool verbatim);
|
||||
bool WriteTagWithPrefix(ostream& out, const std::string& prefix, const std::string& tag);
|
||||
bool WriteBinary(ostream& out, const char *data, std::size_t size);
|
||||
bool WriteBinary(ostream& out, const unsigned char *data, std::size_t size);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user