╭ Issue.zig ────────────────────────────────────────────────────╮ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ╰───────────────────────────────────────────────────────────────╯
╭────╮ ╭ clone ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╮ │http│ ssh │ │ ╰────╯ ╰ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╯
1 const std = @import("std"); 2 const evt = @import("../event.zig"); 3 const xit = @import("xit"); 4 const hash = xit.hash; 5 6 title: []const u8, 7 description: []const u8, 8 tags: []const u8, 9 10 pub fn read( 11 comptime DB: type, 12 comptime hash_kind: hash.HashKind, 13 arena: *std.heap.ArenaAllocator, 14 map: DB.HashMap(.read_only), 15 ) !@This() { 16 return .{ 17 .title = try evt.readBytes(DB, hash_kind, arena.allocator(), map, "title"), 18 .description = try evt.readBytes(DB, hash_kind, arena.allocator(), map, "description"), 19 .tags = try evt.readBytes(DB, hash_kind, arena.allocator(), map, "tags"), 20 }; 21 } 22