flexbuffers blob to string implementation (#5039)

This commit is contained in:
Shivendra Agarwal
2018-11-16 04:27:05 +05:30
committed by Wouter van Oortmerssen
parent f8a0d3889b
commit 9068b0ee63

View File

@@ -547,6 +547,9 @@ class Reference {
AppendToString<TypedVector>(s, AsTypedVector(), keys_quoted);
} else if (IsFixedTypedVector()) {
AppendToString<FixedTypedVector>(s, AsFixedTypedVector(), keys_quoted);
} else if (IsBlob()) {
auto blob = AsBlob();
flatbuffers::EscapeString(reinterpret_cast<const char*>(blob.data()), blob.size(), &s, true, false);
} else {
s += "(?)";
}