Skip to documentation
SLOP

alloc_fixed.used

Reference alloc_fixed used

Internal implementation documentation

Defined in alloc_fixed.

Reports in bytes how far the bump frontier of a FixedBuffer has moved.

Called byCallsNo direct callsprivate sourcelib.accy.src.preparation.backendcheckBackendStorageprivate sourcelib.accy.src.preparation.bufferization.passcheckBufferStorageprivate sourcelib.accy.src.preparation.layoutcheckLayoutStorageprivate sourcelib.accy.src.preparation.memorycheckMemoryFailureStorageprivate sourcelib.accy.src.preparation.memorycheckMemoryStorage+9 morealloc_fixedused
Static calls · unresolved targets: 0 · external targets: 0.

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.

Audit

Definitions1
Public names1
Members0
Version26.7.0
Revisiondaab053ee433