UNPKG

1.99 kBTypeScriptView Raw
1/**
2 * Binary data constants.
3 *
4 * @module binary
5 */
6/**
7 * n-th bit activated.
8 *
9 * @type {number}
10 */
11export const BIT1: number;
12export const BIT2: 2;
13export const BIT3: 4;
14export const BIT4: 8;
15export const BIT5: 16;
16export const BIT6: 32;
17export const BIT7: 64;
18export const BIT8: 128;
19export const BIT9: 256;
20export const BIT10: 512;
21export const BIT11: 1024;
22export const BIT12: 2048;
23export const BIT13: 4096;
24export const BIT14: 8192;
25export const BIT15: 16384;
26export const BIT16: 32768;
27export const BIT17: 65536;
28export const BIT18: number;
29export const BIT19: number;
30export const BIT20: number;
31export const BIT21: number;
32export const BIT22: number;
33export const BIT23: number;
34export const BIT24: number;
35export const BIT25: number;
36export const BIT26: number;
37export const BIT27: number;
38export const BIT28: number;
39export const BIT29: number;
40export const BIT30: number;
41export const BIT31: number;
42export const BIT32: number;
43/**
44 * First n bits activated.
45 *
46 * @type {number}
47 */
48export const BITS0: number;
49export const BITS1: 1;
50export const BITS2: 3;
51export const BITS3: 7;
52export const BITS4: 15;
53export const BITS5: 31;
54export const BITS6: 63;
55export const BITS7: 127;
56export const BITS8: 255;
57export const BITS9: 511;
58export const BITS10: 1023;
59export const BITS11: 2047;
60export const BITS12: 4095;
61export const BITS13: 8191;
62export const BITS14: 16383;
63export const BITS15: 32767;
64export const BITS16: 65535;
65export const BITS17: number;
66export const BITS18: number;
67export const BITS19: number;
68export const BITS20: number;
69export const BITS21: number;
70export const BITS22: number;
71export const BITS23: number;
72export const BITS24: number;
73export const BITS25: number;
74export const BITS26: number;
75export const BITS27: number;
76export const BITS28: number;
77export const BITS29: number;
78export const BITS30: number;
79/**
80 * @type {number}
81 */
82export const BITS31: number;
83/**
84 * @type {number}
85 */
86export const BITS32: number;
87//# sourceMappingURL=binary.d.ts.map
\No newline at end of file