-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmod.ts
42 lines (39 loc) · 774 Bytes
/
mod.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/**
* Information about how much bytes needs for store length of array.
*/
export enum LengthType {
None = "none",
Uint8 = "uint8",
Uint16 = "uint16",
Uint32 = "uint32",
}
/**
* Contains type of a number.
* Is it unsigned or signed?
* How much bits need to represent a number?
*/
export enum NumberType {
Uint8 = "uint8",
Uint16 = "uint16",
Uint24 = "uint24",
Uint32 = "uint32",
Int8 = "int8",
Int16 = "int16",
Int32 = "int32",
}
/**
* Order of bytes
*/
export enum Endianness {
/**
* Big Endian
*/
BE = "big",
/**
* Little Endian
*/
LE = "little",
}
export * from "./src/byteset/ByteSet.ts";
export * from "./src/bytearray/ByteArray.ts";
export * from "./src/bitarray/BitArray.ts";