Interface SharedArrayBuffer
interface SharedArrayBuffer {
"[species]": SharedArrayBuffer;
"[toStringTag]": "SharedArrayBuffer";
byteLength: number;
get growable(): boolean;
get maxByteLength(): number;
grow(newByteLength?: number): void;
slice(begin?: number, end?: number): SharedArrayBuffer;
}
"[species]": SharedArrayBuffer;
"[toStringTag]": "SharedArrayBuffer";
byteLength: number;
get growable(): boolean;
get maxByteLength(): number;
grow(newByteLength?: number): void;
slice(begin?: number, end?: number): SharedArrayBuffer;
}
Index
Properties
Readonly
[species]
Readonly
[toStringTag]
"[toStringTag]": "SharedArrayBuffer"
Readonly
byteLength
byteLength: number
Accessors
growable
- get growable(): boolean
Returns true if this SharedArrayBuffer can be grown.
Returns boolean
maxByteLength
- get maxByteLength(): number
If this SharedArrayBuffer is growable, returns the maximum byte length given during construction; returns the byte length if not.
Returns number
Methods
grow
slice
- slice(begin?: number, end?: number): SharedArrayBuffer
Returns a section of an SharedArrayBuffer.
Parameters
Optional
begin: numberOptional
end: number
Returns SharedArrayBuffer
Read-only. The length of the ArrayBuffer (in bytes).