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