Lines Matching refs:Buff
102 DataPtr Buff; member
105 ValueUnion() : Size(0), Buff(nullptr, &std::free) {} in ValueUnion()
109 Buff(::new (std::malloc(Size)) DataT(), &std::free) {} in ValueUnion()
113 explicit operator bool() const { return bool(Buff); } in operator bool()
115 char* data() const { return Buff->bytes; } in data()
120 if (Size == sizeof(Buff->uint32_value)) in GetAsInteger()
121 return static_cast<int32_t>(Buff->uint32_value); in GetAsInteger()
122 else if (Size == sizeof(Buff->uint64_value)) in GetAsInteger()
123 return static_cast<int64_t>(Buff->uint64_value); in GetAsInteger()
128 if (Size == sizeof(Buff->uint32_value)) in GetAsUnsigned()
129 return Buff->uint32_value; in GetAsUnsigned()
130 else if (Size == sizeof(Buff->uint64_value)) in GetAsUnsigned()
131 return Buff->uint64_value; in GetAsUnsigned()
180 auto Buff = GetSysctlImp(Name); in GetSysctl() local
181 if (!Buff) return false; in GetSysctl()
182 Out->assign(Buff.data()); in GetSysctl()
190 auto Buff = GetSysctlImp(Name); in GetSysctl() local
191 if (!Buff) return false; in GetSysctl()
192 *Out = static_cast<Tp>(Buff.GetAsUnsigned()); in GetSysctl()
198 auto Buff = GetSysctlImp(Name); in GetSysctl() local
199 if (!Buff) return false; in GetSysctl()
200 *Out = Buff.GetAsArray<Tp, N>(); in GetSysctl()