Home
last modified time | relevance | path

Searched defs:ValueUnion (Results 1 – 4 of 4) sorted by relevance

/external/libcxx/utils/google-benchmark/src/
Dsysinfo.cc78 struct ValueUnion { struct
79 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() argument
94 explicit ValueUnion(size_t BuffSize) in ValueUnion() argument
100 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 …]
/external/google-benchmark/src/
Dsysinfo.cc78 struct ValueUnion { struct
79 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() argument
94 explicit ValueUnion(size_t BuffSize) in ValueUnion() function
100 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 …]
/external/llvm/include/llvm/IR/
DModuleSummaryIndex.h58 union ValueUnion { union
61 ValueUnion(GlobalValue::GUID Id) : Id(Id) {} in ValueUnion() function
62 ValueUnion(const Value *V) : V(V) {} in ValueUnion() function
/external/swiftshader/src/OpenGL/libGLESv2/
DContext.h319 union ValueUnion union