Skip to documentation
SLOP

alloc_observe.beginOwned

Reference alloc_observe beginOwned

Internal implementation documentation

Defined in alloc_observe.

Initiates an ordinary observation span using an explicit caller identity, forwarding prior and requested buffer sizes, addresses, alignment, and return address arguments.

Called byCallsalloc_observebeginprivate sourcelib.alloc.observe.src.protocolbeginEventalloc_observebeginOwned
Static calls · unresolved targets: 0 · external targets: 0.

Source

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

zig
/// Initiates an ordinary observation span using an explicit caller identity,/// forwarding prior and requested buffer sizes, addresses, alignment, and/// return address arguments. In enabled builds, this function asserts identity/// validity rules by requiring a nonzero producer identifier and requiring a/// nonzero cookie whenever the generation number is nonzero, but it performs no/// automatic generation advancement or lifecycle state validation. If/// observation is suppressed or no sink is present, the function returns an/// inactive span. In disabled builds, it returns an inert span.pub inline fn beginOwned(    identity: Identity,    operation: Operation,    old_address: usize,    old_len: usize,    len: usize,    alignment: usize,    return_address: usize,) Span {    return beginEvent(        identity,        operation,        .none,        .none,        old_address,        old_len,        len,        alignment,        return_address,    );}

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

zig
/// Initiates an ordinary observation span using an explicit caller identity,/// forwarding prior and requested buffer sizes, addresses, alignment, and/// return address arguments. In enabled builds, this function asserts identity/// validity rules by requiring a nonzero producer identifier and requiring a/// nonzero cookie whenever the generation number is nonzero, but it performs no/// automatic generation advancement or lifecycle state validation. If/// observation is suppressed or no sink is present, the function returns an/// inactive span. In disabled builds, it returns an inert span.pub const beginOwned = protocol.beginOwned;

Audit

Definitions1
Public names1
Members0
Version26.7.0
Revisiondaab053ee433