Skip to documentation
SLOP

alloc_observe.LifecycleReason

Reference alloc_observe LifecycleReason

Internal implementation documentation

Defined in alloc_observe.

Describes the motive for an allocator lifecycle transition: none, reset, clearandfree, clearretainingcurrent, clearretaininglargest, clearretainingcapacity, clearretainingcapacity_limit, and deinit.

API (8)

Fields and members

Public fields and members.

No direct callersNo direct callsalloc_observeLifecycleReason
Static calls · unresolved targets: unknown · external targets: unknown.

Source

Source: lib/alloc/observe/src/protocol.zig:73

zig
/// Describes the motive for an allocator lifecycle transition: none, reset,/// clear_and_free, clear_retaining_current, clear_retaining_largest,/// clear_retaining_capacity, clear_retaining_capacity_limit, and deinit. Each/// value represents an owner-supplied description of its action. The/// enumeration conveys descriptive intent rather than implementing memory/// retention, so actual buffer preservation or release depends entirely on the/// owner allocator implementation.pub const LifecycleReason = enum(u8) {    none,    reset,    clear_and_free,    clear_retaining_current,    clear_retaining_largest,    clear_retaining_capacity,    clear_retaining_capacity_limit,    deinit,};

Source: lib/alloc/observe/src/root.zig:376

zig
/// Describes the motive for an allocator lifecycle transition: none, reset,/// clear_and_free, clear_retaining_current, clear_retaining_largest,/// clear_retaining_capacity, clear_retaining_capacity_limit, and deinit. Each/// value represents an owner-supplied description of its action. The/// enumeration conveys descriptive intent rather than implementing memory/// retention, so actual buffer preservation or release depends entirely on the/// owner allocator implementation.pub const LifecycleReason = protocol.LifecycleReason;

Audit

Definitions1
Public names1
Members8
Version26.7.0
Revisiondaab053ee433