Skip to main content
Module

x/byte_type/mod.ts>Compounds.Struct

😋 A small helper module for working with different raw types in javascript
Go to Latest
class Compounds.Struct
extends UnsizedType<V>
import { Compounds } from "https://deno.land/x/byte_type@0.2.3/mod.ts";
const { Struct } = Compounds;

Constructors

new
Struct(input: T)

Type Parameters

T extends Record<string, UnsizedType<unknown>>
optional
V extends [K in keyof T]: InnerType<T[K]> = [K in keyof T]: InnerType<T[K]>

Methods

read(dt: DataView, options?: Options): V
readPacked(dt: DataView, options?: Options): V
write(
value: V,
options?: Options,
): void
writePacked(
value: V,
options?: Options,
): void