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.
clear_and_freeclear_retaining_capacityclear_retaining_capacity_limitclear_retaining_currentclear_retaining_largestdeinitnonereset
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
| Definitions | 1 |
|---|---|
| Public names | 1 |
| Members | 8 |
| Version | 26.7.0 |
| Revision | daab053ee433 |