Skip to documentation
SLOP

tiny.bench.SampleSetCursor

Reference tiny.bench SampleSetCursor

Defined in tiny.bench.

API (5)

Actions

Public operations.

Fields and members

Public fields and members.

No direct callersNo direct callstiny.benchSampleSetCursor
Static calls · unresolved targets: unknown · external targets: unknown.

Source

Source: lib/bench/src/stats/sets.zig:8

zig
pub const Cursor = struct {    values: []u64,    offset: usize = 0,    pub fn init(values: []u64) Cursor {        return .{ .values = values };    }    pub fn take(        self: *Cursor,        comptime set_count: usize,        sample_count: u32,    ) Error![set_count][]u64 {        std.debug.assert(self.offset <= self.values.len);        const required = try valueCapacity(set_count, sample_count);        if (required > self.values.len - self.offset) return error.SampleSetStorageTooSmall;        const end = self.offset + required;        const result = try partition(set_count, self.values[self.offset..end], sample_count);        self.offset = end;        return result;    }    pub fn complete(self: *const Cursor) bool {        std.debug.assert(self.offset <= self.values.len);        return self.offset == self.values.len;    }};

Source: lib/bench/src/root.zig:99

zig
pub const SampleSetCursor = stats.SampleSetCursor;
Called byCallsNo direct callerstiny.benchsampleSetstiny.benchsampleSetValueCapacitySampleSetCursortake
Static calls · unresolved targets: 0 · external targets: 0.

Also reachable as

statistics.SampleSetCursor.

Audit

Definitions4
Public names8
Members2
Version26.7.0
Revisiondaab053ee433