Class MemoryBuffer
Package: @altmp/altv-types
Syntax
Constructors
|
Improve this Doc
View Source
MemoryBuffer(number)
Declaration
MemoryBuffer(size: number): MemoryBuffer
Parameters
Type |
Name |
Description |
number |
size |
|
Properties
|
Improve this Doc
View Source
size
Declaration
public readonly size: number
Property Value
|
Improve this Doc
View Source
address
Declaration
public readonly address: bigint
Property Value
Methods
|
Improve this Doc
View Source
byte(number)
Declaration
public byte(offset: number): number
Parameters
Type |
Name |
Description |
number |
offset |
|
Returns
|
Improve this Doc
View Source
double(number)
Declaration
public double(offset: number): number
Parameters
Type |
Name |
Description |
number |
offset |
|
Returns
|
Improve this Doc
View Source
float(number)
Declaration
public float(offset: number): number
Parameters
Type |
Name |
Description |
number |
offset |
|
Returns
|
Improve this Doc
View Source
int(number)
Declaration
public int(offset: number): number
Parameters
Type |
Name |
Description |
number |
offset |
|
Returns
|
Improve this Doc
View Source
long(number)
Declaration
public long(offset: number): bigint
Parameters
Type |
Name |
Description |
number |
offset |
|
Returns
|
Improve this Doc
View Source
short(number)
Declaration
public short(offset: number): number
Parameters
Type |
Name |
Description |
number |
offset |
|
Returns
|
Improve this Doc
View Source
string(number, number)
Declaration
public string(offset: number, length: number): string
Parameters
Type |
Name |
Description |
number |
offset |
|
number |
length |
|
Returns
|
Improve this Doc
View Source
ubyte(number)
Declaration
public ubyte(offset: number): number
Parameters
Type |
Name |
Description |
number |
offset |
|
Returns
|
Improve this Doc
View Source
uint(number)
Declaration
public uint(offset: number): number
Parameters
Type |
Name |
Description |
number |
offset |
|
Returns
|
Improve this Doc
View Source
ulong(number)
Declaration
public ulong(offset: number): bigint
Parameters
Type |
Name |
Description |
number |
offset |
|
Returns
|
Improve this Doc
View Source
ushort(number)
Declaration
public ushort(offset: number): number
Parameters
Type |
Name |
Description |
number |
offset |
|
Returns
|
Improve this Doc
View Source
free()
Declaration
Returns