Lines Matching refs:Buff
103 DataPtr Buff; member
106 ValueUnion() : Size(0), Buff(nullptr, &std::free) {} in ValueUnion()
110 Buff(::new (std::malloc(Size)) DataT(), &std::free) {} in ValueUnion()
114 explicit operator bool() const { return bool(Buff); } in operator bool()
116 char* data() const { return Buff->bytes; } in data()
121 if (Size == sizeof(Buff->uint32_value)) in GetAsInteger()
122 return static_cast<int32_t>(Buff->uint32_value); in GetAsInteger()
123 else if (Size == sizeof(Buff->uint64_value)) in GetAsInteger()
124 return static_cast<int64_t>(Buff->uint64_value); in GetAsInteger()
129 if (Size == sizeof(Buff->uint32_value)) in GetAsUnsigned()
130 return Buff->uint32_value; in GetAsUnsigned()
131 else if (Size == sizeof(Buff->uint64_value)) in GetAsUnsigned()
132 return Buff->uint64_value; in GetAsUnsigned()
181 auto Buff = GetSysctlImp(Name); in GetSysctl() local
182 if (!Buff) return false; in GetSysctl()
183 Out->assign(Buff.data()); in GetSysctl()
191 auto Buff = GetSysctlImp(Name); in GetSysctl() local
192 if (!Buff) return false; in GetSysctl()
193 *Out = static_cast<Tp>(Buff.GetAsUnsigned()); in GetSysctl()
199 auto Buff = GetSysctlImp(Name); in GetSysctl() local
200 if (!Buff) return false; in GetSysctl()
201 *Out = Buff.GetAsArray<Tp, N>(); in GetSysctl()