Skip to main content
Home
This release is 4 versions behind 0.2.8 — the latest version of @phughesmcr/partitionedbuffer. Jump to latest

Built and signed on GitHub Actions

A high-performance PartitionedBuffer implementation backed by Uint32Array for efficient memory usage and fast bitwise operations.

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
100%
Published
4 months ago (0.2.4)
function getSchemaSize
getSchemaSize<T extends SchemaSpec<T>>(schema: Schema<T>): number

Calculate the aligned size of a schema in bytes

Type Parameters

T extends SchemaSpec<T>

Parameters

schema: Schema<T>

the schema to calculate the size of

Return Type

the size in bytes

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@phughesmcr/partitionedbuffer

Import symbol

import { getSchemaSize } from "@phughesmcr/partitionedbuffer";
or

Import directly with a jsr specifier

import { getSchemaSize } from "jsr:@phughesmcr/partitionedbuffer";

Add Package

pnpm i jsr:@phughesmcr/partitionedbuffer
or (using pnpm 10.8 or older)
pnpm dlx jsr add @phughesmcr/partitionedbuffer

Import symbol

import { getSchemaSize } from "@phughesmcr/partitionedbuffer";

Add Package

yarn add jsr:@phughesmcr/partitionedbuffer
or (using Yarn 4.8 or older)
yarn dlx jsr add @phughesmcr/partitionedbuffer

Import symbol

import { getSchemaSize } from "@phughesmcr/partitionedbuffer";

Add Package

npx jsr add @phughesmcr/partitionedbuffer

Import symbol

import { getSchemaSize } from "@phughesmcr/partitionedbuffer";

Add Package

bunx jsr add @phughesmcr/partitionedbuffer

Import symbol

import { getSchemaSize } from "@phughesmcr/partitionedbuffer";