fn WindowIterator(comptime T: type) type
T: type,
buffer: []const T,
index: ?usize,
size: usize,
advance: usize,
fn first(self: *Self) []const T
Returns a slice of the first window. This never fails. Call this only to get th…
Returns a slice of the first window. This never fails. Call this only to get the first window and then use next to get all subsequent windows.
next
fn next(self: *Self) ?[]const T
Returns a slice of the next window, or null if window is at end.
fn reset(self: *Self) void
Resets the iterator to the initial window.