Lines Matching refs:Buff
95 DataPtr Buff; member
98 ValueUnion() : Size(0), Buff(nullptr, &std::free) {} in ValueUnion()
102 Buff(::new (std::malloc(Size)) DataT(), &std::free) {} in ValueUnion()
106 explicit operator bool() const { return bool(Buff); } in operator bool()
108 char* data() const { return Buff->bytes; } in data()
113 if (Size == sizeof(Buff->uint32_value)) in GetAsInteger()
114 return static_cast<int32_t>(Buff->uint32_value); in GetAsInteger()
115 else if (Size == sizeof(Buff->uint64_value)) in GetAsInteger()
116 return static_cast<int64_t>(Buff->uint64_value); in GetAsInteger()
121 if (Size == sizeof(Buff->uint32_value)) in GetAsUnsigned()
122 return Buff->uint32_value; in GetAsUnsigned()
123 else if (Size == sizeof(Buff->uint64_value)) in GetAsUnsigned()
124 return Buff->uint64_value; in GetAsUnsigned()
173 auto Buff = GetSysctlImp(Name); in GetSysctl() local
174 if (!Buff) return false; in GetSysctl()
175 Out->assign(Buff.data()); in GetSysctl()
182 auto Buff = GetSysctlImp(Name); in GetSysctl() local
183 if (!Buff) return false; in GetSysctl()
184 *Out = static_cast<Tp>(Buff.GetAsUnsigned()); in GetSysctl()
190 auto Buff = GetSysctlImp(Name); in GetSysctl() local
191 if (!Buff) return false; in GetSysctl()
192 *Out = Buff.GetAsArray<Tp, N>(); in GetSysctl()