Searched defs:ValueUnion (Results 1 – 4 of 4) sorted by relevance
78 struct ValueUnion { struct79 union DataT {85 using DataPtr = std::unique_ptr<DataT, decltype(&std::free)>;88 size_t Size;89 DataPtr Buff;92 ValueUnion() : Size(0), Buff(nullptr, &std::free) {} in ValueUnion() argument94 explicit ValueUnion(size_t BuffSize) in ValueUnion() argument100 explicit operator bool() const { return bool(Buff); } in operator bool()102 char* data() const { return Buff->bytes; } in data()104 std::string GetAsString() const { return std::string(data()); } in GetAsString()[all …]
78 struct ValueUnion { struct79 union DataT {85 using DataPtr = std::unique_ptr<DataT, decltype(&std::free)>;88 size_t Size;89 DataPtr Buff;92 ValueUnion() : Size(0), Buff(nullptr, &std::free) {} in ValueUnion() argument94 explicit ValueUnion(size_t BuffSize) in ValueUnion() function100 explicit operator bool() const { return bool(Buff); } in operator bool()102 char* data() const { return Buff->bytes; } in data()104 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