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
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
Parameter | Type |
---|---|
value | number |
Returns
from()
static
from(pointer
:PointerLike
):Pointer
Defined in: shared/Pointer.ts:33
Parameters
Parameter | Type |
---|---|
pointer | PointerLike |