Skip to main content

Class: Pointer

A pointer to a position in a buffer.

This is used to keep track of the current position in a buffer while allowing the position to be updated by multiple different functions.

Constructors

new Pointer()

new Pointer(): Pointer

Returns

Pointer

Properties

#value

private #value: number = 0

Defined in

shared/Pointer.ts:17

Accessors

value

Get Signature

get value(): number

Returns

number

Defined in

shared/Pointer.ts:19

Methods

add()

add(value: number): Pointer

Parameters

ParameterType
valuenumber

Returns

Pointer

Defined in

shared/Pointer.ts:23


from()

static from(pointer: PointerLike): Pointer

Parameters

ParameterType
pointerPointerLike

Returns

Pointer

Defined in

shared/Pointer.ts:33