tiny.sandbox.Entry
Defined in change.
API (7)
Actions
Public operations.
Fields and members
Public fields and members.
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;Audit
| Definitions | 3 |
|---|---|
| Public names | 6 |
| Members | 5 |
| Version | 26.7.0 |
| Revision | daab053ee433 |