summaryrefslogtreecommitdiff
path: root/src/Names.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/Names.zig')
-rw-r--r--src/Names.zig4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Names.zig b/src/Names.zig
index 66f71bb9..63eec14f 100644
--- a/src/Names.zig
+++ b/src/Names.zig
@@ -33,6 +33,10 @@ query_len: u8 = 0,
/// Bumped whenever `hits` change: the rows are made again only then.
gen: u32 = 0,
+/// The query is `query_buf[0..query_len]`: what lies past it is undefined
+/// (0xAA in Debug, not in a release build), so no digest reads it.
+pub const replica = .{ .len = .{.{ "query_buf", "query_len" }} };
+
pub const Cand = struct {
/// The row: `bytes[start..][0..len]`.
start: u32,