Skip to main content

Class: Pointer

Defined in: shared/Pointer.ts:16

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

Defined in: shared/Pointer.ts:19

Returns

number

Methods

add()

add(value: number): Pointer

Defined in: shared/Pointer.ts:23

Parameters

ParameterType
valuenumber

Returns

Pointer


from()

static from(pointer: PointerLike): Pointer

Defined in: shared/Pointer.ts:33

Parameters

ParameterType
pointerPointerLike

Returns

Pointer