Lines Matching refs:Buff
100 DataPtr Buff; member
103 ValueUnion() : Size(0), Buff(nullptr, &std::free) {} in ValueUnion()
107 Buff(::new (std::malloc(Size)) DataT(), &std::free) {} in ValueUnion()
111 explicit operator bool() const { return bool(Buff); } in operator bool()
113 char* data() const { return Buff->bytes; } in data()
118 if (Size == sizeof(Buff->uint32_value)) in GetAsInteger()
119 return static_cast<int32_t>(Buff->uint32_value); in GetAsInteger()
120 else if (Size == sizeof(Buff->uint64_value)) in GetAsInteger()
121 return static_cast<int64_t>(Buff->uint64_value); in GetAsInteger()
126 if (Size == sizeof(Buff->uint32_value)) in GetAsUnsigned()
127 return Buff->uint32_value; in GetAsUnsigned()
128 else if (Size == sizeof(Buff->uint64_value)) in GetAsUnsigned()
129 return Buff->uint64_value; in GetAsUnsigned()
178 auto Buff = GetSysctlImp(Name); in GetSysctl() local
179 if (!Buff) return false; in GetSysctl()
180 Out->assign(Buff.data()); in GetSysctl()
188 auto Buff = GetSysctlImp(Name); in GetSysctl() local
189 if (!Buff) return false; in GetSysctl()
190 *Out = static_cast<Tp>(Buff.GetAsUnsigned()); in GetSysctl()
196 auto Buff = GetSysctlImp(Name); in GetSysctl() local
197 if (!Buff) return false; in GetSysctl()
198 *Out = Buff.GetAsArray<Tp, N>(); in GetSysctl()