alloc_fixed.used
Internal implementation documentation
Defined in alloc_fixed.
Reports in bytes how far the bump frontier of a FixedBuffer has moved.
Source
Source: lib/alloc/fixed/src/fixed.zig:48
zig
/// Reports in bytes how far the bump frontier of a `FixedBuffer` has moved. The/// figure is the end index reached in the backing buffer, counting the payload/// bytes and the alignment padding. Freeing or shrinking the most recent/// allocation lowers it. The figure stands above the bytes that are live once/// an allocation has been freed ahead of a later one, and once alignment gaps/// remain behind.pub fn used(owner: *const FixedBuffer) usize { return if (comptime observe.enabled) owner.inner.end_index else owner.end_index;}Source: lib/alloc/fixed/src/root.zig:452
zig
/// `used` reports in bytes how far the bump frontier of a `FixedBuffer` has/// moved. That figure counts both payload bytes and alignment padding. The/// figure stands above the bytes that are live once an allocation has been/// freed ahead of a later one, and once alignment gaps remain behind.pub const used = fixed.used;Complete caller list
14 direct callers.
lib.accy.src.preparation.backend.checkBackendStorage[function] — private source atlib/accy/src/preparation/backend.zig:519in nearest public ownertiny.accy.preparation.backendlib.accy.src.preparation.bufferization.pass.checkBufferStorage[function] — private source atlib/accy/src/preparation/bufferization/pass.zig:876in nearest public ownerlib.accy.src.preparation.bufferization.passlib.accy.src.preparation.layout.checkLayoutStorage[function] — private source atlib/accy/src/preparation/layout.zig:515in nearest public ownertiny.accy.preparation.layoutlib.accy.src.preparation.memory.checkMemoryFailureStorage[function] — private source atlib/accy/src/preparation/memory.zig:700in nearest public ownertiny.accy.preparation.memorylib.accy.src.preparation.memory.checkMemoryStorage[function] — private source atlib/accy/src/preparation/memory.zig:660in nearest public ownertiny.accy.preparation.memorylib.accy.src.preparation.publication.verifyPlan[function] — private source atlib/accy/src/preparation/publication.zig:722in nearest public ownertiny.accy.preparation.publicationlib.alloc.fixed.src.fixed.Tracked.observeUsage[method] — private source atlib/alloc/fixed/src/fixed.zig:141in nearest public ownerlib.alloc.fixed.src.fixedalloc_fixed.Tracked.status[method] atlib/alloc/fixed/src/fixed.zig:132lib.alloc.fixed.src.fixed.fits[function] — private source atlib/alloc/fixed/src/fixed.zig:231in nearest public ownerlib.alloc.fixed.src.fixedlib.alloc.fixed.src.test.test_chunked_fixed_buffer_caps_scheduled_growth[function] — test source atlib/alloc/fixed/src/test.zig:82in nearest public ownerlib.alloc.fixed.src.testlib.alloc.fixed.src.test.test_owned_fixed_buffer_preserves_standard_behavior[function] — test source atlib/alloc/fixed/src/test.zig:21in nearest public ownerlib.alloc.fixed.src.testlib.choir.src.egraph.graph.checkMergeStorage[function] — private source atlib/choir/src/egraph/graph.zig:350in nearest public ownertiny.choir.egraph.graphlib.choir.src.passes.canonicalization.test_canonicalization_population_bounds_cover_sealed_builder_allocation_traffic[function] — test source atlib/choir/src/passes/canonicalization.zig:2906in nearest public ownertiny.choir.passes.canonicalizationlib.choir.src.passes.pass.work.checkContainerGrowth[function] — private source atlib/choir/src/passes/pass/work.zig:187in nearest public ownertiny.choir.passes.pass.work
Audit
| Definitions | 1 |
|---|---|
| Public names | 1 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |