fn WindowIterator(comptime T: type) type

Parameters

T: type,

Fields

buffer: []const T,
index: ?usize,
size: usize,
advance: usize,

Functions

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.

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.