Home | History | Annotate | Download | only in src

Lines Matching full:buff

89   DataPtr Buff;
92 ValueUnion() : Size(0), Buff(nullptr, &std::free) {}
96 Buff(::new (std::malloc(Size)) DataT(), &std::free) {}
100 explicit operator bool() const { return bool(Buff); }
102 char* data() const { return Buff->bytes; }
107 if (Size == sizeof(Buff->uint32_value))
108 return static_cast<int32_t>(Buff->uint32_value);
109 else if (Size == sizeof(Buff->uint64_value))
110 return static_cast<int64_t>(Buff->uint64_value);
115 if (Size == sizeof(Buff->uint32_value))
116 return Buff->uint32_value;
117 else if (Size == sizeof(Buff->uint64_value))
118 return Buff->uint64_value;
137 ValueUnion buff(CurBuffSize);
138 if (sysctlbyname(Name.c_str(), buff.data(), &buff.Size, nullptr, 0) == 0)
139 return buff;
146 auto Buff = GetSysctlImp(Name);
147 if (!Buff) return false;
148 Out->assign(Buff.data());
156 auto Buff = GetSysctlImp(Name);
157 if (!Buff) return false;
158 *Out = static_cast<Tp>(Buff.GetAsUnsigned());
164 auto Buff = GetSysctlImp(Name);
165 if (!Buff) return false;
166 *Out = Buff.GetAsArray<Tp, N>();
290 UPtr buff((PInfo*)malloc(buffer_size), &std::free);
291 if (!GetLogicalProcessorInformation(buff.get(), &buffer_size))
295 PInfo* it = buff.get();
296 PInfo* end = buff.get() + (buffer_size / sizeof(PInfo));