Lines Matching refs:Buff
97 DataPtr Buff; member
100 ValueUnion() : Size(0), Buff(nullptr, &std::free) {} in ValueUnion()
104 Buff(::new (std::malloc(Size)) DataT(), &std::free) {} in ValueUnion()
108 explicit operator bool() const { return bool(Buff); } in operator bool()
110 char* data() const { return Buff->bytes; } in data()
115 if (Size == sizeof(Buff->uint32_value)) in GetAsInteger()
116 return static_cast<int32_t>(Buff->uint32_value); in GetAsInteger()
117 else if (Size == sizeof(Buff->uint64_value)) in GetAsInteger()
118 return static_cast<int64_t>(Buff->uint64_value); in GetAsInteger()
123 if (Size == sizeof(Buff->uint32_value)) in GetAsUnsigned()
124 return Buff->uint32_value; in GetAsUnsigned()
125 else if (Size == sizeof(Buff->uint64_value)) in GetAsUnsigned()
126 return Buff->uint64_value; in GetAsUnsigned()
175 auto Buff = GetSysctlImp(Name); in GetSysctl() local
176 if (!Buff) return false; in GetSysctl()
177 Out->assign(Buff.data()); in GetSysctl()
185 auto Buff = GetSysctlImp(Name); in GetSysctl() local
186 if (!Buff) return false; in GetSysctl()
187 *Out = static_cast<Tp>(Buff.GetAsUnsigned()); in GetSysctl()
193 auto Buff = GetSysctlImp(Name); in GetSysctl() local
194 if (!Buff) return false; in GetSysctl()
195 *Out = Buff.GetAsArray<Tp, N>(); in GetSysctl()