Skip to documentation
SLOP

tiny.sql.advertiseHistoryRefs

Reference tiny.sql advertiseHistoryRefs

Defined in sync.

Called byCallsNo direct callstest sourcelib.sql.src.synctest: sync negotiated fetch advertise...syncadvertiseRefs
Static calls · unresolved targets: 0 · external targets: 6.

Source

Source: lib/sql/src/sync.zig:665

zig
pub fn advertiseRefs(allocator: Allocator, history: *const history_mod.History) Error!Advertisement {    const refs = try history.refList(allocator);    defer history_mod.freeRefList(allocator, refs);    const owned = try allocator.alloc(RefObject, refs.len);    var count: usize = 0;    errdefer {        for (owned[0..count]) |*ref_value| ref_value.deinit(allocator);        if (owned.len != 0) allocator.free(owned);    }    for (refs, owned) |ref_value, *target| {        const name = try allocator.dupe(u8, ref_value.name);        errdefer allocator.free(name);        target.* = .{            .name = name,            .target = ref_value.target,        };        count += 1;    }    return .{        .allocator = allocator,        .refs = owned,    };}

Source: lib/sql/src/root.zig:125

zig
pub const advertiseHistoryRefs = sync.advertiseRefs;

Audit

Definitions1
Public names2
Members0
Version26.7.0
Revisiondaab053ee433