Skip to main content
class Struct
extends Pointer
import { Struct } from "https://deno.land/x/capnp_ts@0.1.0/mod.ts";

Constructors

new
Struct(
segment: Segment,
byteOffset: number,
depthLimit?,
compositeIndex?: number,
)

Create a new pointer to a struct.

Type Parameters

optional
T = unknown

Methods

toString(): string

Static Properties

readonly
_capnp: { displayName; }
readonly
getAs
readonly
getBit
readonly
getData
readonly
getFloat32
readonly
getFloat64
readonly
getInt16
readonly
getInt32
readonly
getInt64
readonly
getInt8
readonly
getList
readonly
getPointer
readonly
getPointerAs
readonly
getStruct
readonly
getText
readonly
getUint16
readonly
getUint32
readonly
getUint64
readonly
getUint8
readonly
initData
readonly
initList
readonly
initStruct
readonly
initStructAt
readonly
setBit
readonly
setFloat32
readonly
setFloat64
readonly
setInt16
readonly
setInt32
readonly
setInt64
readonly
setInt8
readonly
setText
readonly
setUint16
readonly
setUint32
readonly
setUint64
readonly
setUint8
readonly
testWhich