MCPcopy Create free account
hub / github.com/apache/maka / decodeOffset

Function decodeOffset

packages/runtime-host/src/protocol/usage-pricing.ts:698–700  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

696}
697
698function decodeOffset(value: unknown): number {
699 return value === undefined ? 0 : requireCount(value, 'usage offset');
700}
701
702function decodeLimit(value: unknown): number {
703 if (value === undefined) return USAGE_PAGE_MAX_ITEMS;

Callers 1

decodeUsageQueryInputFunction · 0.85

Calls 1

requireCountFunction · 0.85

Tested by

no test coverage detected