What is the idiomatic way to combine bounded slices and buffered reads for paginating a large dataset in Zig?
I am designing a small query layer in Zig that must return results in fixed-size pages rather than loading an entire dataset into memory. The data can be either an in-memory array or a file-backed stream, and I want a single abstraction that bounds each query to at most N items. From the standard library I see three relevant pieces: std.mem.slice for creatin