mirror of
https://github.com/Instadapp/Swap-Aggregator-Subgraph.git
synced 2024-07-29 21:57:12 +00:00
16 lines
610 B
TypeScript
16 lines
610 B
TypeScript
import { BLOCK } from "./common";
|
|
|
|
export declare function oninit(heapBase: usize): void;
|
|
|
|
// Memory Allocator
|
|
export declare function onalloc(block: BLOCK): void;
|
|
export declare function onresize(block: BLOCK, oldSizeInclOverhead: usize): void;
|
|
export declare function onmove(oldBlock: BLOCK, newBlock: BLOCK): void;
|
|
export declare function onfree(block: BLOCK): void;
|
|
|
|
// Garbage collector
|
|
export declare function onvisit(block: BLOCK): bool;
|
|
export declare function oncollect(total: usize): void;
|
|
export declare function oninterrupt(total: usize): void;
|
|
export declare function onyield(total: usize): void;
|