Skip to documentation
SLOP

tiny.glom.SearchCapacity

Reference tiny.glom SearchCapacity

Defined in tiny.glom.

API (5)

Actions

Public operations.

Fields and members

Public fields and members.

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

Source

Source: tools/glom/src/search/capacity.zig:11

zig
pub const Capacity = struct {    document_value_bytes: usize,    query_workspace_bytes: usize,    presentation_workspace_bytes: usize,    storage_bytes: usize,    pub fn derive(limits: Limits) DeriveError!Capacity {        const search_bytes = std.math.add(            usize,            limits.document_value_bytes,            limits.query_workspace_bytes,        ) catch return error.CapacityOverflow;        return .{            .document_value_bytes = limits.document_value_bytes,            .query_workspace_bytes = limits.query_workspace_bytes,            .presentation_workspace_bytes = limits.presentation_workspace_bytes,            .storage_bytes = std.math.add(                usize,                search_bytes,                limits.presentation_workspace_bytes,            ) catch return error.CapacityOverflow,        };    }};

Source: tools/glom/src/root.zig:25

zig
pub const SearchCapacity = search.Capacity;
Called byCallsNo direct callstest; no linktools.glom.src.search.capacitytest: Glom search capacity matches th...SearchCapacityderive
Static calls · unresolved targets: 0 · external targets: 0.

Also reachable as

search.Capacity.

Audit

Definitions2
Public names4
Members4
Version26.7.0
Revisiondaab053ee433