Searched defs:ValueUnion (Results 1 – 4 of 4) sorted by relevance
86 struct ValueUnion { struct87 union DataT {93 using DataPtr = std::unique_ptr<DataT, decltype(&std::free)>;96 size_t Size;97 DataPtr Buff;100 ValueUnion() : Size(0), Buff(nullptr, &std::free) {} in ValueUnion() argument102 explicit ValueUnion(size_t BuffSize) in ValueUnion() function108 explicit operator bool() const { return bool(Buff); } in operator bool()110 char* data() const { return Buff->bytes; } in data()112 std::string GetAsString() const { return std::string(data()); } in GetAsString()[all …]
89 struct ValueUnion { struct90 union DataT {96 using DataPtr = std::unique_ptr<DataT, decltype(&std::free)>;99 size_t Size;100 DataPtr Buff;103 ValueUnion() : Size(0), Buff(nullptr, &std::free) {} in ValueUnion() function105 explicit ValueUnion(size_t BuffSize) in ValueUnion() argument111 explicit operator bool() const { return bool(Buff); } in operator bool()113 char* data() const { return Buff->bytes; } in data()115 std::string GetAsString() const { return std::string(data()); } in GetAsString()[all …]
58 union ValueUnion { union61 ValueUnion(GlobalValue::GUID Id) : Id(Id) {} in ValueUnion() function62 ValueUnion(const Value *V) : V(V) {} in ValueUnion() function
319 union ValueUnion union