Searched defs:ValueUnion (Results 1 – 3 of 3) sorted by relevance
92 struct ValueUnion { struct93 union DataT {99 using DataPtr = std::unique_ptr<DataT, decltype(&std::free)>;102 size_t Size;103 DataPtr Buff;106 ValueUnion() : Size(0), Buff(nullptr, &std::free) {} in ValueUnion() function108 explicit ValueUnion(size_t BuffSize) in ValueUnion() argument114 explicit operator bool() const { return bool(Buff); } in operator bool()116 char* data() const { return Buff->bytes; } in data()118 std::string GetAsString() const { return std::string(data()); } in GetAsString()[all …]
3560 union ValueUnion { union3573 ValueUnion (deInt8 v) : i8(v) {} in ValueUnion() function3574 ValueUnion (deUint8 v) : u8(v) {} in ValueUnion() function3575 ValueUnion (deInt16 v) : i16(v) {} in ValueUnion() function3576 ValueUnion (deUint16 v) : u16(v) {} in ValueUnion() function3577 ValueUnion (deInt32 v) : i32(v) {} in ValueUnion() function3578 ValueUnion (deUint32 v) : u32(v) {} in ValueUnion() function3579 ValueUnion (deInt64 v) : i64(v) {} in ValueUnion() function3580 ValueUnion (deUint64 v) : u64(v) {} in ValueUnion() function3581 ValueUnion (tcu::Float16 v) : f16(v) {} in ValueUnion() function[all …]
290 union ValueUnion union