-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.d.ts
45 lines (40 loc) · 2.19 KB
/
index.d.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
43
44
45
export default class Format {
constructor();
buffer(name: string, length: any, constructor?: any): Format;
text(name: string, length: any, encoding?: string, constructor?: any): Format;
nest(name: string, format: Format, constructor?: any): Format;
list(name: string, count: number, format: Format): Format;
listEof(name: string, format: Format): Format;
custom(name: string, callback: Function): Format;
uint8(name: string, constructor?: any): Format;
uint16BE(name: string, constructor?: any): Format;
uint16LE(name: string, constructor?: any): Format;
uint32BE(name: string, constructor?: any): Format;
uint32LE(name: string, constructor?: any): Format;
int8(name: string, constructor?: any): Format;
int16BE(name: string, constructor?: any): Format;
int16LE(name: string, constructor?: any): Format;
int32BE(name: string, constructor?: any): Format;
int32LE(name: string, constructor?: any): Format;
floatBE(name: string, constructor?: any): Format;
floatLE(name: string, constructor?: any): Format;
doubleBE(name: string, constructor?: any): Format;
doubleLE(name: string, constructor?: any): Format;
uint8array(name: string, length: number, constructor?: any): Format;
uint16BEarray(name: string, length: number, constructor?: any): Format;
uint16LEarray(name: string, length: number, constructor?: any): Format;
uint32BEarray(name: string, length: number, constructor?: any): Format;
uint32LEarray(name: string, length: number, constructor?: any): Format;
int8array(name: string, length: number, constructor?: any): Format;
int16BEarray(name: string, length: number, constructor?: any): Format;
int16LEarray(name: string, length: number, constructor?: any): Format;
int32BEarray(name: string, length: number, constructor?: any): Format;
int32LEarray(name: string, length: number, constructor?: any): Format;
floatBEarray(name: string, length: number, constructor?: any): Format;
floatLEarray(name: string, length: number, constructor?: any): Format;
doubleBEarray(name: string, length: number, constructor?: any): Format;
doubleLEarray(name: string, length: number, constructor?: any): Format;
length(): Format;
parse(buffer: any, reader?: any): any;
write(data: any, options?: any): any;
}