Skip to documentation
SLOP

tiny.sandbox.Entry

Reference tiny.sandbox Entry

Defined in change.

API (7)

Actions

Public operations.

Fields and members

Public fields and members.

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

Source

Source: lib/sandbox/src/change.zig:17

zig
pub const Entry = struct {    path: []u8,    kind: Kind,    hash: []u8 = &.{},    target: []u8 = &.{},    bytes: u64 = 0,    pub fn clone(self: Entry, allocator: Allocator) Allocator.Error!Entry {        const path = try allocator.dupe(u8, self.path);        errdefer allocator.free(path);        const hash = try allocator.dupe(u8, self.hash);        errdefer allocator.free(hash);        const target = try allocator.dupe(u8, self.target);        return .{            .path = path,            .kind = self.kind,            .hash = hash,            .target = target,            .bytes = self.bytes,        };    }    pub fn deinit(self: *Entry, allocator: Allocator) void {        allocator.free(self.path);        allocator.free(self.hash);        allocator.free(self.target);        self.* = undefined;    }};

Source: lib/sandbox/src/root.zig:50

zig
pub const Entry = change.Entry;
Called byCallsNo direct callsChangecloneEntryclone
Static calls · unresolved targets: 0 · external targets: 2.
Called byCallsNo direct callsChangedeinitEntrydeinit
Static calls · unresolved targets: 0 · external targets: 1.

Audit

Definitions3
Public names6
Members5
Version26.7.0
Revisiondaab053ee433