9 #ifndef LLVM_OBJECTYAML_YAML_H 10 #define LLVM_OBJECTYAML_YAML_H 71 bool DataIsHexString =
true;
82 return Data.
size() / 2;
103 return LHS.DataIsHexString == RHS.DataIsHexString && LHS.Data == RHS.Data;
116 #endif // LLVM_OBJECTYAML_YAML_H BinaryRef(ArrayRef< uint8_t > Data)
This class represents lattice values for constants.
ArrayRef< uint8_t > arrayRefFromStringRef(StringRef Input)
Construct a string ref from an array ref of unsigned chars.
void writeAsBinary(raw_ostream &OS, uint64_t N=UINT64_MAX) const
Write the contents (regardless of whether it is binary or a hex string) as binary to the given raw_os...
friend bool operator==(const BinaryRef &LHS, const BinaryRef &RHS)
size_t size() const
size - Get the array size.
static QuotingType mustQuote(StringRef S)
ArrayRef< uint8_t >::size_type binary_size() const
The number of bytes that are represented by this BinaryRef.
Specialized YAMLIO scalar type for representing a binary blob.
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)
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...
bool empty() const
empty - Check if the array is empty.