13 static constexpr size_t MaximumEntries = 128;
14 static constexpr size_t MaximumStoreBytes = 256 * 1024;
15 static constexpr size_t MaximumTotalBytes = 16 * 1024 * 1024;
19 explicit Quota(
size_t limit = MaximumTotalBytes) : m_Limit(limit) {}
24 NOT_COPYABLE_OR_ASSIGNABLE(
Quota);
25 bool increase(
size_t amount);
26 void decrease(
size_t amount);
31 static Quota& globalQuota();
35 XattrStatus get(
const StringView& name,
void* buffer,
size_t capacity,
size_t& required);
36 XattrStatus list(
void* buffer,
size_t capacity,
size_t& required);
37 XattrStatus set(
const StringView& name,
const void* value,
size_t length,
unsigned flags);
47 Entry* m_Entries =
nullptr;