UNPKG

1.17 kBTypeScriptView Raw
1export declare const enum ImmediateConstants {
2 MAX_SMI = 1073741823,
3 MIN_SMI = -1073741824,
4 SIGN_BIT = -536870913,
5 MAX_INT = 536870911,
6 MIN_INT = -536870912,
7 FALSE_HANDLE = 0,
8 TRUE_HANDLE = 1,
9 NULL_HANDLE = 2,
10 UNDEFINED_HANDLE = 3,
11 ENCODED_FALSE_HANDLE = 0,
12 ENCODED_TRUE_HANDLE = 1,
13 ENCODED_NULL_HANDLE = 2,
14 ENCODED_UNDEFINED_HANDLE = 3
15}
16export declare function isHandle(value: number): boolean;
17export declare function isNonPrimitiveHandle(value: number): boolean;
18export declare function constants(...values: unknown[]): unknown[];
19export declare function isSmallInt(value: number): boolean;
20export declare function encodeNegative(num: number): number;
21export declare function decodeNegative(num: number): number;
22export declare function encodePositive(num: number): number;
23export declare function decodePositive(num: number): number;
24export declare function encodeHandle(num: number): number;
25export declare function decodeHandle(num: number): number;
26export declare function encodeImmediate(num: number): number;
27export declare function decodeImmediate(num: number): number;
28//# sourceMappingURL=immediate.d.ts.map
\No newline at end of file