AllocatorBytesRequested
Description
Read-only stats accessors. Each macro is a comma expression (((void)0, ...)) so the result is not an lvalue – assigning to AllocatorBytesInUse(a) = n fails at compile time. Mutation is the typed allocator’s job; readers stay observers.
a is any typed allocator pointer (HeapAllocator *, SlabAllocator *, …) or a plain Allocator *. ALLOCATOR_OF performs the typed -> base cast via _Generic without dispatching, so each accessor compiles down to a direct field load. No function call, no vtable.
Usage example (Cross-references)
Usage examples (Cross-references)
No external code usages found in the scanned files.
Last updated on