Interface Type

Hierarchy

Index

Properties

Methods

Properties

optional public alignment?: number

The alignment of this datatype when placed inside a struct.

public indirection: number

The current level of indirection of the buffer.

optional public name?: string

The name to use during debugging for this datatype.

public size: number

The size in bytes required to hold this datatype.

Methods

public get(buffer: Buffer, offset: number): any

To invoke when ref.get is invoked on a buffer of this type.

Parameters

  • buffer: Buffer
  • offset: number

Returns

any

public set(buffer: Buffer, offset: number, value: any)

To invoke when ref.set is invoked on a buffer of this type.

Parameters

  • buffer: Buffer
  • offset: number
  • value: any