tiny.glom.SearchCapacity
Defined in tiny.glom.
API (5)
Actions
Public operations.
Fields and members
Public fields and members.
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;Also reachable as
Audit
| Definitions | 2 |
|---|---|
| Public names | 4 |
| Members | 4 |
| Version | 26.7.0 |
| Revision | daab053ee433 |