Home
last modified time | relevance | path

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

/external/libcxx/utils/google-benchmark/src/
Dsysinfo.cc86 struct ValueUnion { struct
87 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() argument
102 explicit ValueUnion(size_t BuffSize) in ValueUnion() function
108 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 …]
/external/google-benchmark/src/
Dsysinfo.cc89 struct ValueUnion { struct
90 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() function
105 explicit ValueUnion(size_t BuffSize) in ValueUnion() argument
111 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 …]
/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