10 #ifndef LLVM_OBJECTYAML_YAML_H
11 #define LLVM_OBJECTYAML_YAML_H
68 : Data(reinterpret_cast<
const uint8_t *>(Data.data()), Data.size()),
69 DataIsHexString(
true) {}
75 return Data.
size() / 2;
93 return LHS.DataIsHexString == RHS.DataIsHexString && LHS.Data == RHS.Data;
BinaryRef(ArrayRef< uint8_t > Data)
ArrayRef< uint8_t >::size_type binary_size() const
The number of bytes that are represented by this BinaryRef.
bool operator==(const BinaryRef &LHS, const BinaryRef &RHS)
void writeAsBinary(raw_ostream &OS) const
Write the contents (regardless of whether it is binary or a hex string) as binary to the given raw_os...
bool needsQuotes(StringRef S)
Function Alias Analysis false
size_t size() const
size - Get the array size.
friend bool operator==(const BinaryRef &LHS, const BinaryRef &RHS)
bool empty() const
empty - Check if the array is empty.
static bool mustQuote(StringRef S)
This class should be specialized by type that requires custom conversion to/from a yaml scalar...
Specialized YAMLIO scalar type for representing a binary blob.
void writeAsHex(raw_ostream &OS) const
Write the contents (regardless of whether it is binary or a hex string) as hex to the given raw_ostre...
This class implements an extremely fast bulk output stream that can only output to a stream...
StringRef - Represent a constant reference to a string, i.e.
BinaryRef(StringRef Data)