blob: 84b5412e529525bfbaddba64ded9abfe675a7daa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
/**
* @author jdiaz5513
*/
import { ArenaAllocationResult } from "./arena-allocation-result";
import { ArenaKind } from "./arena-kind";
export declare class MultiSegmentArena {
static readonly allocate: typeof allocate;
static readonly getBuffer: typeof getBuffer;
static readonly getNumSegments: typeof getNumSegments;
readonly buffers: ArrayBuffer[];
readonly kind = ArenaKind.MULTI_SEGMENT;
constructor(buffers?: ArrayBuffer[]);
toString(): string;
}
export declare function allocate(minSize: number, m: MultiSegmentArena): ArenaAllocationResult;
export declare function getBuffer(id: number, m: MultiSegmentArena): ArrayBuffer;
export declare function getNumSegments(m: MultiSegmentArena): number;
|