bireader 1.0.5 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2936 @@
1
+ /// <reference types="node" />
2
+ /**
3
+ *
4
+ * byte reader, includes bitfields and strings
5
+ *
6
+ * @param {Buffer|Uint8Array} data - ```Buffer``` or ```Uint8Array```
7
+ * @param {number} byteOffset - byte offset to start reader, default is 0
8
+ * @param {number} bitOffset - bit offset to start reader, 0-7
9
+ * @param {string} endianness - endianness ```big``` or ```little``` (default ```little```)
10
+ */
11
+ export default class bireader {
12
+ endian: string;
13
+ offset: number;
14
+ bitoffset: number;
15
+ size: number;
16
+ data: Array<Buffer | Uint8Array>;
17
+ private check_size;
18
+ private isBuffer;
19
+ private isBufferOrUint8Array;
20
+ /**
21
+ *
22
+ * byte reader, includes bitfields and strings
23
+ *
24
+ * @param {Buffer|Uint8Array} data - ```Buffer``` or ```Uint8Array```
25
+ * @param {number} byteOffset - byte offset to start reader, default is 0
26
+ * @param {number} bitOffset - bit offset to start reader, 0-7
27
+ * @param {string} endianness - endianness ```big``` or ```little``` (default ```little```)
28
+ */
29
+ constructor(data: Array<Buffer | Uint8Array>, byteOffset?: number, bitOffset?: number, endianness?: string);
30
+ /**
31
+ *
32
+ * Change endian, defaults to little
33
+ *
34
+ * Can be changed at any time, doesn't loose position
35
+ *
36
+ * @param {string} endian - endianness ```big``` or ```little```
37
+ */
38
+ endianness(endian: string): void;
39
+ /**
40
+ *Sets endian to big
41
+ */
42
+ bigEndian(): void;
43
+ /**
44
+ *Sets endian to big
45
+ */
46
+ big(): void;
47
+ /**
48
+ *Sets endian to big
49
+ */
50
+ be(): void;
51
+ /**
52
+ * Sets endian to little
53
+ */
54
+ littleEndian(): void;
55
+ /**
56
+ * Sets endian to little
57
+ */
58
+ little(): void;
59
+ /**
60
+ * Sets endian to little
61
+ */
62
+ le(): void;
63
+ /**
64
+ * Move current read byte or bit position
65
+ *
66
+ * @param {number} bytes - bytes to skip
67
+ * @param {number} bits - bits to skip
68
+ */
69
+ skip(bytes: number, bits?: number): void;
70
+ /**
71
+ * Move current read byte or bit position
72
+ *
73
+ * @param {number} bytes - bytes to skip
74
+ * @param {number} bits - bits to skip
75
+ */
76
+ fskip(bytes: number, bits?: number): void;
77
+ /**
78
+ * Change current byte or bit read position
79
+ *
80
+ * @param {number} byte - byte to jump to
81
+ * @param {number} bit - bit to jump to (0-7)
82
+ */
83
+ goto(byte: number, bit?: number): void;
84
+ /**
85
+ * Change current byte or bit read position
86
+ *
87
+ * @param {number} byte - byte to jump to
88
+ * @param {number} bit - bit to jump to (0-7)
89
+ */
90
+ seek(byte: number, bit?: number): void;
91
+ /**
92
+ * Change current byte or bit read position
93
+ *
94
+ * @param {number} byte - byte to jump to
95
+ * @param {number} bit - bit to jump to (0-7)
96
+ */
97
+ fseek(byte: number, bit?: number): void;
98
+ /**
99
+ * Change current byte or bit read position
100
+ *
101
+ * @param {number} byte - byte to jump to
102
+ * @param {number} bit - bit to jump to (0-7)
103
+ */
104
+ jump(byte: number, bit?: number): void;
105
+ /**
106
+ * Change current byte or bit read position
107
+ *
108
+ * @param {number} byte - byte to jump to
109
+ * @param {number} bit - bit to jump to (0-7)
110
+ */
111
+ pointer(byte: number, bit?: number): void;
112
+ /**
113
+ * Change current byte or bit read position
114
+ *
115
+ * @param {number} byte - byte to jump to
116
+ * @param {number} bit - bit to jump to (0-7)
117
+ */
118
+ warp(byte: number, bit?: number): void;
119
+ /**
120
+ * Change current byte or bit read position
121
+ *
122
+ * @param {number} byte - byte to jump to
123
+ * @param {number} bit - bit to jump to (0-7)
124
+ */
125
+ fsetpos(byte: number, bit?: number): void;
126
+ /**
127
+ * Set offset to start of file
128
+ */
129
+ rewind(): void;
130
+ /**
131
+ * Set offset to start of file
132
+ */
133
+ gotostart(): void;
134
+ /**
135
+ * Set offset to start of file
136
+ */
137
+ tostart(): void;
138
+ /**
139
+ * Get the current byte position
140
+ *
141
+ * @return {number} current byte position
142
+ */
143
+ ftell(): number;
144
+ /**
145
+ * Get the current byte position
146
+ *
147
+ * @return {number} current byte position
148
+ */
149
+ tell(): number;
150
+ /**
151
+ * Get the current byte position
152
+ *
153
+ * @return {number} current byte position
154
+ */
155
+ fgetpos(): number;
156
+ /**
157
+ * Truncates array from start to current position unless supplied
158
+ * Note: Does not affect supplied data
159
+ * @param {number} startOffset - Start location, default 0
160
+ * @param {number} endOffset - end location, default current write position
161
+ * @returns {Buffer|Uint8Array} ``Buffer`` or ``Uint8Array``
162
+ */
163
+ clip(startOffset?: number, endOffset?: number): Array<Buffer | Uint8Array>;
164
+ /**
165
+ * Truncates array from start to current position unless supplied
166
+ * Note: Does not affect supplied data
167
+ * @param {number} startOffset - Start location, default 0
168
+ * @param {number} endOffset - end location, default current write position
169
+ * @returns {Buffer|Uint8Array} ``Buffer`` or ``Uint8Array``
170
+ */
171
+ crop(startOffset?: number, endOffset?: number): Array<Buffer | Uint8Array>;
172
+ /**
173
+ * Truncates array from start to current position unless supplied
174
+ * Note: Does not affect supplied data
175
+ * @param {number} startOffset - Start location, default 0
176
+ * @param {number} endOffset - end location, default current write position
177
+ * @returns {Buffer|Uint8Array} ``Buffer`` or ``Uint8Array``
178
+ */
179
+ truncate(startOffset?: number, endOffset?: number): Array<Buffer | Uint8Array>;
180
+ /**
181
+ * Truncates array from start to current position unless supplied
182
+ * Note: Does not affect supplied data
183
+ * @param {number} startOffset - Start location, default 0
184
+ * @param {number} endOffset - end location, default current write position
185
+ * @returns {Buffer|Uint8Array} ``Buffer`` or ``Uint8Array``
186
+ */
187
+ slice(startOffset?: number, endOffset?: number): Array<Buffer | Uint8Array>;
188
+ /**
189
+ * Extract array from current position to length supplied
190
+ * Note: Does not affect supplied data
191
+ * @param {number} length - length of data to copy from current offset
192
+ * @returns {Buffer|Uint8Array} ``Buffer`` or ``Uint8Array``
193
+ */
194
+ extract(length: number): Array<Buffer | Uint8Array>;
195
+ /**
196
+ * Extract array from current position to length supplied
197
+ * Note: Does not affect supplied data
198
+ * @param {number} length - length of data to copy from current offset
199
+ * @returns {Buffer|Uint8Array} ``Buffer`` or ``Uint8Array``
200
+ */
201
+ wrap(length: number): Array<Buffer | Uint8Array>;
202
+ /**
203
+ * Extract array from current position to length supplied
204
+ * Note: Does not affect supplied data
205
+ * @param {number} length - length of data to copy from current offset
206
+ * @returns {Buffer|Uint8Array} ``Buffer`` or ``Uint8Array``
207
+ */
208
+ lift(length: number): Array<Buffer | Uint8Array>;
209
+ /**
210
+ * Returns current data
211
+ * @returns {Buffer|Uint8Array} ``Buffer`` or ``Uint8Array``
212
+ */
213
+ get(): Array<Buffer | Uint8Array>;
214
+ /**
215
+ * Returns current data
216
+ * @returns {Buffer|Uint8Array} ``Buffer`` or ``Uint8Array``
217
+ */
218
+ return(): Array<Buffer | Uint8Array>;
219
+ /**
220
+ * removes reading data
221
+ */
222
+ end(): void;
223
+ /**
224
+ * removes reading data
225
+ */
226
+ close(): void;
227
+ /**
228
+ * removes reading data
229
+ */
230
+ done(): void;
231
+ /**
232
+ * removes reading data
233
+ */
234
+ finished(): void;
235
+ /**
236
+ * Bit field reader
237
+ *
238
+ * Note: When returning to a byte read, remaining bits are dropped
239
+ *
240
+ * @param {number} bits - bits to read
241
+ * @param {boolean} unsigned - if the value is unsigned
242
+ * @param {string} endian - ``big`` or ``little`
243
+ * @returns number
244
+ */
245
+ readBit(bits?: number, unsigned?: boolean, endian?: string): number;
246
+ /**
247
+ * Bit field reader
248
+ *
249
+ * Note: When returning to a byte read, remaining bits are dropped
250
+ *
251
+ * @param {number} bits - bits to read
252
+ * @param {boolean} unsigned - if the value is unsigned
253
+ * @param {string} endian - ``big`` or ``little`
254
+ * @returns number
255
+ */
256
+ bit(bits: number, unsigned?: boolean, endian?: string): number;
257
+ /**
258
+ * Bit field reader
259
+ *
260
+ * Note: When returning to a byte read, remaining bits are dropped
261
+ *
262
+ * @param {boolean} unsigned - if the value is unsigned
263
+ * @returns number
264
+ */
265
+ bit1(unsigned?: boolean): number;
266
+ /**
267
+ * Bit field reader
268
+ *
269
+ * Note: When returning to a byte read, remaining bits are dropped
270
+ *
271
+ * @param {boolean} unsigned - if the value is unsigned
272
+ * @returns number
273
+ */
274
+ bit1le(unsigned?: boolean): number;
275
+ /**
276
+ * Bit field reader
277
+ *
278
+ * Note: When returning to a byte read, remaining bits are dropped
279
+ *
280
+ * @param {boolean} unsigned - if the value is unsigned
281
+ * @returns number
282
+ */
283
+ bit1be(unsigned?: boolean): number;
284
+ /**
285
+ * Bit field reader
286
+ *
287
+ * Note: When returning to a byte read, remaining bits are dropped
288
+ *
289
+ * @returns number
290
+ */
291
+ ubit1(): number;
292
+ /**
293
+ * Bit field reader
294
+ *
295
+ * Note: When returning to a byte read, remaining bits are dropped
296
+ *
297
+ * @returns number
298
+ */
299
+ ubit1le(): number;
300
+ /**
301
+ * Bit field reader
302
+ *
303
+ * Note: When returning to a byte read, remaining bits are dropped
304
+ *
305
+ * @returns number
306
+ */
307
+ ubit1be(): number;
308
+ /**
309
+ * Bit field reader
310
+ *
311
+ * Note: When returning to a byte read, remaining bits are dropped
312
+ *
313
+ * @param {boolean} unsigned - if the value is unsigned
314
+ * @returns number
315
+ */
316
+ bit2(unsigned?: boolean): number;
317
+ /**
318
+ * Bit field reader
319
+ *
320
+ * Note: When returning to a byte read, remaining bits are dropped
321
+ *
322
+ * @param {boolean} unsigned - if the value is unsigned
323
+ * @returns number
324
+ */
325
+ bit2le(unsigned?: boolean): number;
326
+ /**
327
+ * Bit field reader
328
+ *
329
+ * Note: When returning to a byte read, remaining bits are dropped
330
+ *
331
+ * @param {boolean} unsigned - if the value is unsigned
332
+ * @returns number
333
+ */
334
+ bit2be(unsigned?: boolean): number;
335
+ /**
336
+ * Bit field reader
337
+ *
338
+ * Note: When returning to a byte read, remaining bits are dropped
339
+ *
340
+ * @returns number
341
+ */
342
+ ubit2(): number;
343
+ /**
344
+ * Bit field reader
345
+ *
346
+ * Note: When returning to a byte read, remaining bits are dropped
347
+ *
348
+ * @returns number
349
+ */
350
+ ubit2le(): number;
351
+ /**
352
+ * Bit field reader
353
+ *
354
+ * Note: When returning to a byte read, remaining bits are dropped
355
+ *
356
+ * @returns number
357
+ */
358
+ ubit2be(): number;
359
+ /**
360
+ * Bit field reader
361
+ *
362
+ * Note: When returning to a byte read, remaining bits are dropped
363
+ *
364
+ * @param {boolean} unsigned - if the value is unsigned
365
+ * @returns number
366
+ */
367
+ bit3(unsigned?: boolean): number;
368
+ /**
369
+ * Bit field reader
370
+ *
371
+ * Note: When returning to a byte read, remaining bits are dropped
372
+ *
373
+ * @param {boolean} unsigned - if the value is unsigned
374
+ * @returns number
375
+ */
376
+ bit3le(unsigned?: boolean): number;
377
+ /**
378
+ * Bit field reader
379
+ *
380
+ * Note: When returning to a byte read, remaining bits are dropped
381
+ *
382
+ * @param {boolean} unsigned - if the value is unsigned
383
+ * @returns number
384
+ */
385
+ bit3be(unsigned?: boolean): number;
386
+ /**
387
+ * Bit field reader
388
+ *
389
+ * Note: When returning to a byte read, remaining bits are dropped
390
+ *
391
+ * @returns number
392
+ */
393
+ ubit3(): number;
394
+ /**
395
+ * Bit field reader
396
+ *
397
+ * Note: When returning to a byte read, remaining bits are dropped
398
+ *
399
+ * @returns number
400
+ */
401
+ ubit3le(): number;
402
+ /**
403
+ * Bit field reader
404
+ *
405
+ * Note: When returning to a byte read, remaining bits are dropped
406
+ *
407
+ * @returns number
408
+ */
409
+ ubit3be(): number;
410
+ /**
411
+ * Bit field reader
412
+ *
413
+ * Note: When returning to a byte read, remaining bits are dropped
414
+ *
415
+ * @param {boolean} unsigned - if the value is unsigned
416
+ * @returns number
417
+ */
418
+ bit4(unsigned?: boolean): number;
419
+ /**
420
+ * Bit field reader
421
+ *
422
+ * Note: When returning to a byte read, remaining bits are dropped
423
+ *
424
+ * @param {boolean} unsigned - if the value is unsigned
425
+ * @returns number
426
+ */
427
+ bit4le(unsigned?: boolean): number;
428
+ /**
429
+ * Bit field reader
430
+ *
431
+ * Note: When returning to a byte read, remaining bits are dropped
432
+ *
433
+ * @param {boolean} unsigned - if the value is unsigned
434
+ * @returns number
435
+ */
436
+ bit4be(unsigned?: boolean): number;
437
+ /**
438
+ * Bit field reader
439
+ *
440
+ * Note: When returning to a byte read, remaining bits are dropped
441
+ *
442
+ * @returns number
443
+ */
444
+ ubit4(): number;
445
+ /**
446
+ * Bit field reader
447
+ *
448
+ * Note: When returning to a byte read, remaining bits are dropped
449
+ *
450
+ * @returns number
451
+ */
452
+ ubit4le(): number;
453
+ /**
454
+ * Bit field reader
455
+ *
456
+ * Note: When returning to a byte read, remaining bits are dropped
457
+ *
458
+ * @returns number
459
+ */
460
+ ubit4be(): number;
461
+ /**
462
+ * Bit field reader
463
+ *
464
+ * Note: When returning to a byte read, remaining bits are dropped
465
+ *
466
+ * @param {boolean} unsigned - if the value is unsigned
467
+ * @returns number
468
+ */
469
+ bit5(unsigned?: boolean): number;
470
+ /**
471
+ * Bit field reader
472
+ *
473
+ * Note: When returning to a byte read, remaining bits are dropped
474
+ *
475
+ * @param {boolean} unsigned - if the value is unsigned
476
+ * @returns number
477
+ */
478
+ bit5le(unsigned?: boolean): number;
479
+ /**
480
+ * Bit field reader
481
+ *
482
+ * Note: When returning to a byte read, remaining bits are dropped
483
+ *
484
+ * @param {boolean} unsigned - if the value is unsigned
485
+ * @returns number
486
+ */
487
+ bit5be(unsigned?: boolean): number;
488
+ /**
489
+ * Bit field reader
490
+ *
491
+ * Note: When returning to a byte read, remaining bits are dropped
492
+ *
493
+ * @returns number
494
+ */
495
+ ubit5(): number;
496
+ /**
497
+ * Bit field reader
498
+ *
499
+ * Note: When returning to a byte read, remaining bits are dropped
500
+ *
501
+ * @returns number
502
+ */
503
+ ubit5le(): number;
504
+ /**
505
+ * Bit field reader
506
+ *
507
+ * Note: When returning to a byte read, remaining bits are dropped
508
+ *
509
+ * @returns number
510
+ */
511
+ ubit5be(): number;
512
+ /**
513
+ * Bit field reader
514
+ *
515
+ * Note: When returning to a byte read, remaining bits are dropped
516
+ *
517
+ * @param {boolean} unsigned - if the value is unsigned
518
+ * @returns number
519
+ */
520
+ bit6(unsigned?: boolean): number;
521
+ /**
522
+ * Bit field reader
523
+ *
524
+ * Note: When returning to a byte read, remaining bits are dropped
525
+ *
526
+ * @param {boolean} unsigned - if the value is unsigned
527
+ * @returns number
528
+ */
529
+ bit6le(unsigned?: boolean): number;
530
+ /**
531
+ * Bit field reader
532
+ *
533
+ * Note: When returning to a byte read, remaining bits are dropped
534
+ *
535
+ * @param {boolean} unsigned - if the value is unsigned
536
+ * @returns number
537
+ */
538
+ bit6be(unsigned?: boolean): number;
539
+ /**
540
+ * Bit field reader
541
+ *
542
+ * Note: When returning to a byte read, remaining bits are dropped
543
+ *
544
+ * @returns number
545
+ */
546
+ ubit6(): number;
547
+ /**
548
+ * Bit field reader
549
+ *
550
+ * Note: When returning to a byte read, remaining bits are dropped
551
+ *
552
+ * @returns number
553
+ */
554
+ ubit6le(): number;
555
+ /**
556
+ * Bit field reader
557
+ *
558
+ * Note: When returning to a byte read, remaining bits are dropped
559
+ *
560
+ * @returns number
561
+ */
562
+ ubit6be(): number;
563
+ /**
564
+ * Bit field reader
565
+ *
566
+ * Note: When returning to a byte read, remaining bits are dropped
567
+ *
568
+ * @param {boolean} unsigned - if the value is unsigned
569
+ * @returns number
570
+ */
571
+ bit7(unsigned?: boolean): number;
572
+ /**
573
+ * Bit field reader
574
+ *
575
+ * Note: When returning to a byte read, remaining bits are dropped
576
+ *
577
+ * @param {boolean} unsigned - if the value is unsigned
578
+ * @returns number
579
+ */
580
+ bit7le(unsigned?: boolean): number;
581
+ /**
582
+ * Bit field reader
583
+ *
584
+ * Note: When returning to a byte read, remaining bits are dropped
585
+ *
586
+ * @param {boolean} unsigned - if the value is unsigned
587
+ * @returns number
588
+ */
589
+ bit7be(unsigned?: boolean): number;
590
+ /**
591
+ * Bit field reader
592
+ *
593
+ * Note: When returning to a byte read, remaining bits are dropped
594
+ *
595
+ * @returns number
596
+ */
597
+ ubit7(): number;
598
+ /**
599
+ * Bit field reader
600
+ *
601
+ * Note: When returning to a byte read, remaining bits are dropped
602
+ *
603
+ * @returns number
604
+ */
605
+ ubit7le(): number;
606
+ /**
607
+ * Bit field reader
608
+ *
609
+ * Note: When returning to a byte read, remaining bits are dropped
610
+ *
611
+ * @returns number
612
+ */
613
+ ubit7be(): number;
614
+ /**
615
+ * Bit field reader
616
+ *
617
+ * Note: When returning to a byte read, remaining bits are dropped
618
+ *
619
+ * @param {boolean} unsigned - if the value is unsigned
620
+ * @returns number
621
+ */
622
+ bit8(unsigned?: boolean): number;
623
+ /**
624
+ * Bit field reader
625
+ *
626
+ * Note: When returning to a byte read, remaining bits are dropped
627
+ *
628
+ * @param {boolean} unsigned - if the value is unsigned
629
+ * @returns number
630
+ */
631
+ bit8le(unsigned?: boolean): number;
632
+ /**
633
+ * Bit field reader
634
+ *
635
+ * Note: When returning to a byte read, remaining bits are dropped
636
+ *
637
+ * @param {boolean} unsigned - if the value is unsigned
638
+ * @returns number
639
+ */
640
+ bit8be(unsigned?: boolean): number;
641
+ /**
642
+ * Bit field reader
643
+ *
644
+ * Note: When returning to a byte read, remaining bits are dropped
645
+ *
646
+ * @returns number
647
+ */
648
+ ubit8(): number;
649
+ /**
650
+ * Bit field reader
651
+ *
652
+ * Note: When returning to a byte read, remaining bits are dropped
653
+ *
654
+ * @returns number
655
+ */
656
+ ubit8le(): number;
657
+ /**
658
+ * Bit field reader
659
+ *
660
+ * Note: When returning to a byte read, remaining bits are dropped
661
+ *
662
+ * @returns number
663
+ */
664
+ ubit8be(): number;
665
+ /**
666
+ * Bit field reader
667
+ *
668
+ * Note: When returning to a byte read, remaining bits are dropped
669
+ *
670
+ * @param {boolean} unsigned - if the value is unsigned
671
+ * @returns number
672
+ */
673
+ bit9(unsigned?: boolean): number;
674
+ /**
675
+ * Bit field reader
676
+ *
677
+ * Note: When returning to a byte read, remaining bits are dropped
678
+ *
679
+ * @param {boolean} unsigned - if the value is unsigned
680
+ * @returns number
681
+ */
682
+ bit9le(unsigned?: boolean): number;
683
+ /**
684
+ * Bit field reader
685
+ *
686
+ * Note: When returning to a byte read, remaining bits are dropped
687
+ *
688
+ * @param {boolean} unsigned - if the value is unsigned
689
+ * @returns number
690
+ */
691
+ bit9be(unsigned?: boolean): number;
692
+ /**
693
+ * Bit field reader
694
+ *
695
+ * Note: When returning to a byte read, remaining bits are dropped
696
+ *
697
+ * @returns number
698
+ */
699
+ ubit9(): number;
700
+ /**
701
+ * Bit field reader
702
+ *
703
+ * Note: When returning to a byte read, remaining bits are dropped
704
+ *
705
+ * @returns number
706
+ */
707
+ ubit9le(): number;
708
+ /**
709
+ * Bit field reader
710
+ *
711
+ * Note: When returning to a byte read, remaining bits are dropped
712
+ *
713
+ * @returns number
714
+ */
715
+ ubit9be(): number;
716
+ /**
717
+ * Bit field reader
718
+ *
719
+ * Note: When returning to a byte read, remaining bits are dropped
720
+ *
721
+ * @param {boolean} unsigned - if the value is unsigned
722
+ * @returns number
723
+ */
724
+ bit10(unsigned?: boolean): number;
725
+ /**
726
+ * Bit field reader
727
+ *
728
+ * Note: When returning to a byte read, remaining bits are dropped
729
+ *
730
+ * @param {boolean} unsigned - if the value is unsigned
731
+ * @returns number
732
+ */
733
+ bit10le(unsigned?: boolean): number;
734
+ /**
735
+ * Bit field reader
736
+ *
737
+ * Note: When returning to a byte read, remaining bits are dropped
738
+ *
739
+ * @param {boolean} unsigned - if the value is unsigned
740
+ * @returns number
741
+ */
742
+ bit10be(unsigned?: boolean): number;
743
+ /**
744
+ * Bit field reader
745
+ *
746
+ * Note: When returning to a byte read, remaining bits are dropped
747
+ *
748
+ * @returns number
749
+ */
750
+ ubit10(): number;
751
+ /**
752
+ * Bit field reader
753
+ *
754
+ * Note: When returning to a byte read, remaining bits are dropped
755
+ *
756
+ * @returns number
757
+ */
758
+ ubit10le(): number;
759
+ /**
760
+ * Bit field reader
761
+ *
762
+ * Note: When returning to a byte read, remaining bits are dropped
763
+ *
764
+ * @returns number
765
+ */
766
+ ubit10be(): number;
767
+ /**
768
+ * Bit field reader
769
+ *
770
+ * Note: When returning to a byte read, remaining bits are dropped
771
+ *
772
+ * @param {boolean} unsigned - if the value is unsigned
773
+ * @returns number
774
+ */
775
+ bit11(unsigned?: boolean): number;
776
+ /**
777
+ * Bit field reader
778
+ *
779
+ * Note: When returning to a byte read, remaining bits are dropped
780
+ *
781
+ * @param {boolean} unsigned - if the value is unsigned
782
+ * @returns number
783
+ */
784
+ bit11le(unsigned?: boolean): number;
785
+ /**
786
+ * Bit field reader
787
+ *
788
+ * Note: When returning to a byte read, remaining bits are dropped
789
+ *
790
+ * @param {boolean} unsigned - if the value is unsigned
791
+ * @returns number
792
+ */
793
+ bit11be(unsigned?: boolean): number;
794
+ /**
795
+ * Bit field reader
796
+ *
797
+ * Note: When returning to a byte read, remaining bits are dropped
798
+ *
799
+ * @returns number
800
+ */
801
+ ubit11(): number;
802
+ /**
803
+ * Bit field reader
804
+ *
805
+ * Note: When returning to a byte read, remaining bits are dropped
806
+ *
807
+ * @returns number
808
+ */
809
+ ubit11le(): number;
810
+ /**
811
+ * Bit field reader
812
+ *
813
+ * Note: When returning to a byte read, remaining bits are dropped
814
+ *
815
+ * @returns number
816
+ */
817
+ ubit11be(): number;
818
+ /**
819
+ * Bit field reader
820
+ *
821
+ * Note: When returning to a byte read, remaining bits are dropped
822
+ *
823
+ * @param {boolean} unsigned - if the value is unsigned
824
+ * @returns number
825
+ */
826
+ bit12(unsigned?: boolean): number;
827
+ /**
828
+ * Bit field reader
829
+ *
830
+ * Note: When returning to a byte read, remaining bits are dropped
831
+ *
832
+ * @param {boolean} unsigned - if the value is unsigned
833
+ * @returns number
834
+ */
835
+ bit12le(unsigned?: boolean): number;
836
+ /**
837
+ * Bit field reader
838
+ *
839
+ * Note: When returning to a byte read, remaining bits are dropped
840
+ *
841
+ * @param {boolean} unsigned - if the value is unsigned
842
+ * @returns number
843
+ */
844
+ bit12be(unsigned?: boolean): number;
845
+ /**
846
+ * Bit field reader
847
+ *
848
+ * Note: When returning to a byte read, remaining bits are dropped
849
+ *
850
+ * @returns number
851
+ */
852
+ ubit12(): number;
853
+ /**
854
+ * Bit field reader
855
+ *
856
+ * Note: When returning to a byte read, remaining bits are dropped
857
+ *
858
+ * @returns number
859
+ */
860
+ ubit12le(): number;
861
+ /**
862
+ * Bit field reader
863
+ *
864
+ * Note: When returning to a byte read, remaining bits are dropped
865
+ *
866
+ * @returns number
867
+ */
868
+ ubit12be(): number;
869
+ /**
870
+ * Bit field reader
871
+ *
872
+ * Note: When returning to a byte read, remaining bits are dropped
873
+ *
874
+ * @param {boolean} unsigned - if the value is unsigned
875
+ * @returns number
876
+ */
877
+ bit13(unsigned?: boolean): number;
878
+ /**
879
+ * Bit field reader
880
+ *
881
+ * Note: When returning to a byte read, remaining bits are dropped
882
+ *
883
+ * @param {boolean} unsigned - if the value is unsigned
884
+ * @returns number
885
+ */
886
+ bit13le(unsigned?: boolean): number;
887
+ /**
888
+ * Bit field reader
889
+ *
890
+ * Note: When returning to a byte read, remaining bits are dropped
891
+ *
892
+ * @param {boolean} unsigned - if the value is unsigned
893
+ * @returns number
894
+ */
895
+ bit13be(unsigned?: boolean): number;
896
+ /**
897
+ * Bit field reader
898
+ *
899
+ * Note: When returning to a byte read, remaining bits are dropped
900
+ *
901
+ * @returns number
902
+ */
903
+ ubit13(): number;
904
+ /**
905
+ * Bit field reader
906
+ *
907
+ * Note: When returning to a byte read, remaining bits are dropped
908
+ *
909
+ * @returns number
910
+ */
911
+ ubit13le(): number;
912
+ /**
913
+ * Bit field reader
914
+ *
915
+ * Note: When returning to a byte read, remaining bits are dropped
916
+ *
917
+ * @returns number
918
+ */
919
+ ubit13be(): number;
920
+ /**
921
+ * Bit field reader
922
+ *
923
+ * Note: When returning to a byte read, remaining bits are dropped
924
+ *
925
+ * @param {boolean} unsigned - if the value is unsigned
926
+ * @returns number
927
+ */
928
+ bit14(unsigned?: boolean): number;
929
+ /**
930
+ * Bit field reader
931
+ *
932
+ * Note: When returning to a byte read, remaining bits are dropped
933
+ *
934
+ * @param {boolean} unsigned - if the value is unsigned
935
+ * @returns number
936
+ */
937
+ bit14le(unsigned?: boolean): number;
938
+ /**
939
+ * Bit field reader
940
+ *
941
+ * Note: When returning to a byte read, remaining bits are dropped
942
+ *
943
+ * @param {boolean} unsigned - if the value is unsigned
944
+ * @returns number
945
+ */
946
+ bit14be(unsigned?: boolean): number;
947
+ /**
948
+ * Bit field reader
949
+ *
950
+ * Note: When returning to a byte read, remaining bits are dropped
951
+ *
952
+ * @returns number
953
+ */
954
+ ubit14(): number;
955
+ /**
956
+ * Bit field reader
957
+ *
958
+ * Note: When returning to a byte read, remaining bits are dropped
959
+ *
960
+ * @returns number
961
+ */
962
+ ubit14le(): number;
963
+ /**
964
+ * Bit field reader
965
+ *
966
+ * Note: When returning to a byte read, remaining bits are dropped
967
+ *
968
+ * @returns number
969
+ */
970
+ ubit14be(): number;
971
+ /**
972
+ * Bit field reader
973
+ *
974
+ * Note: When returning to a byte read, remaining bits are dropped
975
+ *
976
+ * @param {boolean} unsigned - if the value is unsigned
977
+ * @returns number
978
+ */
979
+ bit15(unsigned?: boolean): number;
980
+ /**
981
+ * Bit field reader
982
+ *
983
+ * Note: When returning to a byte read, remaining bits are dropped
984
+ *
985
+ * @param {boolean} unsigned - if the value is unsigned
986
+ * @returns number
987
+ */
988
+ bit15le(unsigned?: boolean): number;
989
+ /**
990
+ * Bit field reader
991
+ *
992
+ * Note: When returning to a byte read, remaining bits are dropped
993
+ *
994
+ * @param {boolean} unsigned - if the value is unsigned
995
+ * @returns number
996
+ */
997
+ bit15be(unsigned?: boolean): number;
998
+ /**
999
+ * Bit field reader
1000
+ *
1001
+ * Note: When returning to a byte read, remaining bits are dropped
1002
+ *
1003
+ * @returns number
1004
+ */
1005
+ ubit15(): number;
1006
+ /**
1007
+ * Bit field reader
1008
+ *
1009
+ * Note: When returning to a byte read, remaining bits are dropped
1010
+ *
1011
+ * @returns number
1012
+ */
1013
+ ubit15le(): number;
1014
+ /**
1015
+ * Bit field reader
1016
+ *
1017
+ * Note: When returning to a byte read, remaining bits are dropped
1018
+ *
1019
+ * @returns number
1020
+ */
1021
+ ubit15be(): number;
1022
+ /**
1023
+ * Bit field reader
1024
+ *
1025
+ * Note: When returning to a byte read, remaining bits are dropped
1026
+ *
1027
+ * @param {boolean} unsigned - if the value is unsigned
1028
+ * @returns number
1029
+ */
1030
+ bit16(unsigned?: boolean): number;
1031
+ /**
1032
+ * Bit field reader
1033
+ *
1034
+ * Note: When returning to a byte read, remaining bits are dropped
1035
+ *
1036
+ * @param {boolean} unsigned - if the value is unsigned
1037
+ * @returns number
1038
+ */
1039
+ bit16le(unsigned?: boolean): number;
1040
+ /**
1041
+ * Bit field reader
1042
+ *
1043
+ * Note: When returning to a byte read, remaining bits are dropped
1044
+ *
1045
+ * @param {boolean} unsigned - if the value is unsigned
1046
+ * @returns number
1047
+ */
1048
+ bit16be(unsigned?: boolean): number;
1049
+ /**
1050
+ * Bit field reader
1051
+ *
1052
+ * Note: When returning to a byte read, remaining bits are dropped
1053
+ *
1054
+ * @returns number
1055
+ */
1056
+ ubit16(): number;
1057
+ /**
1058
+ * Bit field reader
1059
+ *
1060
+ * Note: When returning to a byte read, remaining bits are dropped
1061
+ *
1062
+ * @returns number
1063
+ */
1064
+ ubit16le(): number;
1065
+ /**
1066
+ * Bit field reader
1067
+ *
1068
+ * Note: When returning to a byte read, remaining bits are dropped
1069
+ *
1070
+ * @returns number
1071
+ */
1072
+ ubit16be(): number;
1073
+ /**
1074
+ * Bit field reader
1075
+ *
1076
+ * Note: When returning to a byte read, remaining bits are dropped
1077
+ *
1078
+ * @param {boolean} unsigned - if the value is unsigned
1079
+ * @returns number
1080
+ */
1081
+ bit17(unsigned?: boolean): number;
1082
+ /**
1083
+ * Bit field reader
1084
+ *
1085
+ * Note: When returning to a byte read, remaining bits are dropped
1086
+ *
1087
+ * @param {boolean} unsigned - if the value is unsigned
1088
+ * @returns number
1089
+ */
1090
+ bit17le(unsigned?: boolean): number;
1091
+ /**
1092
+ * Bit field reader
1093
+ *
1094
+ * Note: When returning to a byte read, remaining bits are dropped
1095
+ *
1096
+ * @param {boolean} unsigned - if the value is unsigned
1097
+ * @returns number
1098
+ */
1099
+ bit17be(unsigned?: boolean): number;
1100
+ /**
1101
+ * Bit field reader
1102
+ *
1103
+ * Note: When returning to a byte read, remaining bits are dropped
1104
+ *
1105
+ * @returns number
1106
+ */
1107
+ ubit17(): number;
1108
+ /**
1109
+ * Bit field reader
1110
+ *
1111
+ * Note: When returning to a byte read, remaining bits are dropped
1112
+ *
1113
+ * @returns number
1114
+ */
1115
+ ubit17le(): number;
1116
+ /**
1117
+ * Bit field reader
1118
+ *
1119
+ * Note: When returning to a byte read, remaining bits are dropped
1120
+ *
1121
+ * @returns number
1122
+ */
1123
+ ubit17be(): number;
1124
+ /**
1125
+ * Bit field reader
1126
+ *
1127
+ * Note: When returning to a byte read, remaining bits are dropped
1128
+ *
1129
+ * @param {boolean} unsigned - if the value is unsigned
1130
+ * @returns number
1131
+ */
1132
+ bit18(unsigned?: boolean): number;
1133
+ /**
1134
+ * Bit field reader
1135
+ *
1136
+ * Note: When returning to a byte read, remaining bits are dropped
1137
+ *
1138
+ * @param {boolean} unsigned - if the value is unsigned
1139
+ * @returns number
1140
+ */
1141
+ bit18le(unsigned?: boolean): number;
1142
+ /**
1143
+ * Bit field reader
1144
+ *
1145
+ * Note: When returning to a byte read, remaining bits are dropped
1146
+ *
1147
+ * @param {boolean} unsigned - if the value is unsigned
1148
+ * @returns number
1149
+ */
1150
+ bit18be(unsigned?: boolean): number;
1151
+ /**
1152
+ * Bit field reader
1153
+ *
1154
+ * Note: When returning to a byte read, remaining bits are dropped
1155
+ *
1156
+ * @returns number
1157
+ */
1158
+ ubit18(): number;
1159
+ /**
1160
+ * Bit field reader
1161
+ *
1162
+ * Note: When returning to a byte read, remaining bits are dropped
1163
+ *
1164
+ * @returns number
1165
+ */
1166
+ ubit18le(): number;
1167
+ /**
1168
+ * Bit field reader
1169
+ *
1170
+ * Note: When returning to a byte read, remaining bits are dropped
1171
+ *
1172
+ * @returns number
1173
+ */
1174
+ ubit18be(): number;
1175
+ /**
1176
+ * Bit field reader
1177
+ *
1178
+ * Note: When returning to a byte read, remaining bits are dropped
1179
+ *
1180
+ * @param {boolean} unsigned - if the value is unsigned
1181
+ * @returns number
1182
+ */
1183
+ bit19(unsigned?: boolean): number;
1184
+ /**
1185
+ * Bit field reader
1186
+ *
1187
+ * Note: When returning to a byte read, remaining bits are dropped
1188
+ *
1189
+ * @param {boolean} unsigned - if the value is unsigned
1190
+ * @returns number
1191
+ */
1192
+ bit19le(unsigned?: boolean): number;
1193
+ /**
1194
+ * Bit field reader
1195
+ *
1196
+ * Note: When returning to a byte read, remaining bits are dropped
1197
+ *
1198
+ * @param {boolean} unsigned - if the value is unsigned
1199
+ * @returns number
1200
+ */
1201
+ bit19be(unsigned?: boolean): number;
1202
+ /**
1203
+ * Bit field reader
1204
+ *
1205
+ * Note: When returning to a byte read, remaining bits are dropped
1206
+ *
1207
+ * @returns number
1208
+ */
1209
+ ubit19(): number;
1210
+ /**
1211
+ * Bit field reader
1212
+ *
1213
+ * Note: When returning to a byte read, remaining bits are dropped
1214
+ *
1215
+ * @returns number
1216
+ */
1217
+ ubit19le(): number;
1218
+ /**
1219
+ * Bit field reader
1220
+ *
1221
+ * Note: When returning to a byte read, remaining bits are dropped
1222
+ *
1223
+ * @returns number
1224
+ */
1225
+ ubit19be(): number;
1226
+ /**
1227
+ * Bit field reader
1228
+ *
1229
+ * Note: When returning to a byte read, remaining bits are dropped
1230
+ *
1231
+ * @param {boolean} unsigned - if the value is unsigned
1232
+ * @returns number
1233
+ */
1234
+ bit20(unsigned?: boolean): number;
1235
+ /**
1236
+ * Bit field reader
1237
+ *
1238
+ * Note: When returning to a byte read, remaining bits are dropped
1239
+ *
1240
+ * @param {boolean} unsigned - if the value is unsigned
1241
+ * @returns number
1242
+ */
1243
+ bit20le(unsigned?: boolean): number;
1244
+ /**
1245
+ * Bit field reader
1246
+ *
1247
+ * Note: When returning to a byte read, remaining bits are dropped
1248
+ *
1249
+ * @param {boolean} unsigned - if the value is unsigned
1250
+ * @returns number
1251
+ */
1252
+ bit20be(unsigned?: boolean): number;
1253
+ /**
1254
+ * Bit field reader
1255
+ *
1256
+ * Note: When returning to a byte read, remaining bits are dropped
1257
+ *
1258
+ * @returns number
1259
+ */
1260
+ ubit20(): number;
1261
+ /**
1262
+ * Bit field reader
1263
+ *
1264
+ * Note: When returning to a byte read, remaining bits are dropped
1265
+ *
1266
+ * @returns number
1267
+ */
1268
+ ubit20le(): number;
1269
+ /**
1270
+ * Bit field reader
1271
+ *
1272
+ * Note: When returning to a byte read, remaining bits are dropped
1273
+ *
1274
+ * @returns number
1275
+ */
1276
+ ubit20be(): number;
1277
+ /**
1278
+ * Bit field reader
1279
+ *
1280
+ * Note: When returning to a byte read, remaining bits are dropped
1281
+ *
1282
+ * @param {boolean} unsigned - if the value is unsigned
1283
+ * @returns number
1284
+ */
1285
+ bit21(unsigned?: boolean): number;
1286
+ /**
1287
+ * Bit field reader
1288
+ *
1289
+ * Note: When returning to a byte read, remaining bits are dropped
1290
+ *
1291
+ * @param {boolean} unsigned - if the value is unsigned
1292
+ * @returns number
1293
+ */
1294
+ bit21le(unsigned?: boolean): number;
1295
+ /**
1296
+ * Bit field reader
1297
+ *
1298
+ * Note: When returning to a byte read, remaining bits are dropped
1299
+ *
1300
+ * @param {boolean} unsigned - if the value is unsigned
1301
+ * @returns number
1302
+ */
1303
+ bit21be(unsigned?: boolean): number;
1304
+ /**
1305
+ * Bit field reader
1306
+ *
1307
+ * Note: When returning to a byte read, remaining bits are dropped
1308
+ *
1309
+ * @returns number
1310
+ */
1311
+ ubit21(): number;
1312
+ /**
1313
+ * Bit field reader
1314
+ *
1315
+ * Note: When returning to a byte read, remaining bits are dropped
1316
+ *
1317
+ * @returns number
1318
+ */
1319
+ ubit21le(): number;
1320
+ /**
1321
+ * Bit field reader
1322
+ *
1323
+ * Note: When returning to a byte read, remaining bits are dropped
1324
+ *
1325
+ * @returns number
1326
+ */
1327
+ ubit21be(): number;
1328
+ /**
1329
+ * Bit field reader
1330
+ *
1331
+ * Note: When returning to a byte read, remaining bits are dropped
1332
+ *
1333
+ * @param {boolean} unsigned - if the value is unsigned
1334
+ * @returns number
1335
+ */
1336
+ bit22(unsigned?: boolean): number;
1337
+ /**
1338
+ * Bit field reader
1339
+ *
1340
+ * Note: When returning to a byte read, remaining bits are dropped
1341
+ *
1342
+ * @param {boolean} unsigned - if the value is unsigned
1343
+ * @returns number
1344
+ */
1345
+ bit22le(unsigned?: boolean): number;
1346
+ /**
1347
+ * Bit field reader
1348
+ *
1349
+ * Note: When returning to a byte read, remaining bits are dropped
1350
+ *
1351
+ * @param {boolean} unsigned - if the value is unsigned
1352
+ * @returns number
1353
+ */
1354
+ bit22be(unsigned?: boolean): number;
1355
+ /**
1356
+ * Bit field reader
1357
+ *
1358
+ * Note: When returning to a byte read, remaining bits are dropped
1359
+ *
1360
+ * @returns number
1361
+ */
1362
+ ubit22(): number;
1363
+ /**
1364
+ * Bit field reader
1365
+ *
1366
+ * Note: When returning to a byte read, remaining bits are dropped
1367
+ *
1368
+ * @returns number
1369
+ */
1370
+ ubit22le(): number;
1371
+ /**
1372
+ * Bit field reader
1373
+ *
1374
+ * Note: When returning to a byte read, remaining bits are dropped
1375
+ *
1376
+ * @returns number
1377
+ */
1378
+ ubit22be(): number;
1379
+ /**
1380
+ * Bit field reader
1381
+ *
1382
+ * Note: When returning to a byte read, remaining bits are dropped
1383
+ *
1384
+ * @param {boolean} unsigned - if the value is unsigned
1385
+ * @returns number
1386
+ */
1387
+ bit23(unsigned?: boolean): number;
1388
+ /**
1389
+ * Bit field reader
1390
+ *
1391
+ * Note: When returning to a byte read, remaining bits are dropped
1392
+ *
1393
+ * @param {boolean} unsigned - if the value is unsigned
1394
+ * @returns number
1395
+ */
1396
+ bit23le(unsigned?: boolean): number;
1397
+ /**
1398
+ * Bit field reader
1399
+ *
1400
+ * Note: When returning to a byte read, remaining bits are dropped
1401
+ *
1402
+ * @param {boolean} unsigned - if the value is unsigned
1403
+ * @returns number
1404
+ */
1405
+ bit23be(unsigned?: boolean): number;
1406
+ /**
1407
+ * Bit field reader
1408
+ *
1409
+ * Note: When returning to a byte read, remaining bits are dropped
1410
+ *
1411
+ * @returns number
1412
+ */
1413
+ ubit23(): number;
1414
+ /**
1415
+ * Bit field reader
1416
+ *
1417
+ * Note: When returning to a byte read, remaining bits are dropped
1418
+ *
1419
+ * @returns number
1420
+ */
1421
+ ubit23le(): number;
1422
+ /**
1423
+ * Bit field reader
1424
+ *
1425
+ * Note: When returning to a byte read, remaining bits are dropped
1426
+ *
1427
+ * @returns number
1428
+ */
1429
+ ubit23be(): number;
1430
+ /**
1431
+ * Bit field reader
1432
+ *
1433
+ * Note: When returning to a byte read, remaining bits are dropped
1434
+ *
1435
+ * @param {boolean} unsigned - if the value is unsigned
1436
+ * @returns number
1437
+ */
1438
+ bit24(unsigned?: boolean): number;
1439
+ /**
1440
+ * Bit field reader
1441
+ *
1442
+ * Note: When returning to a byte read, remaining bits are dropped
1443
+ *
1444
+ * @param {boolean} unsigned - if the value is unsigned
1445
+ * @returns number
1446
+ */
1447
+ bit24le(unsigned?: boolean): number;
1448
+ /**
1449
+ * Bit field reader
1450
+ *
1451
+ * Note: When returning to a byte read, remaining bits are dropped
1452
+ *
1453
+ * @param {boolean} unsigned - if the value is unsigned
1454
+ * @returns number
1455
+ */
1456
+ bit24be(unsigned?: boolean): number;
1457
+ /**
1458
+ * Bit field reader
1459
+ *
1460
+ * Note: When returning to a byte read, remaining bits are dropped
1461
+ *
1462
+ * @returns number
1463
+ */
1464
+ ubit24(): number;
1465
+ /**
1466
+ * Bit field reader
1467
+ *
1468
+ * Note: When returning to a byte read, remaining bits are dropped
1469
+ *
1470
+ * @returns number
1471
+ */
1472
+ ubit24le(): number;
1473
+ /**
1474
+ * Bit field reader
1475
+ *
1476
+ * Note: When returning to a byte read, remaining bits are dropped
1477
+ *
1478
+ * @returns number
1479
+ */
1480
+ ubit24be(): number;
1481
+ /**
1482
+ * Bit field reader
1483
+ *
1484
+ * Note: When returning to a byte read, remaining bits are dropped
1485
+ *
1486
+ * @param {boolean} unsigned - if the value is unsigned
1487
+ * @returns number
1488
+ */
1489
+ bit25(unsigned?: boolean): number;
1490
+ /**
1491
+ * Bit field reader
1492
+ *
1493
+ * Note: When returning to a byte read, remaining bits are dropped
1494
+ *
1495
+ * @param {boolean} unsigned - if the value is unsigned
1496
+ * @returns number
1497
+ */
1498
+ bit25le(unsigned?: boolean): number;
1499
+ /**
1500
+ * Bit field reader
1501
+ *
1502
+ * Note: When returning to a byte read, remaining bits are dropped
1503
+ *
1504
+ * @param {boolean} unsigned - if the value is unsigned
1505
+ * @returns number
1506
+ */
1507
+ bit25be(unsigned?: boolean): number;
1508
+ /**
1509
+ * Bit field reader
1510
+ *
1511
+ * Note: When returning to a byte read, remaining bits are dropped
1512
+ *
1513
+ * @returns number
1514
+ */
1515
+ ubit25(): number;
1516
+ /**
1517
+ * Bit field reader
1518
+ *
1519
+ * Note: When returning to a byte read, remaining bits are dropped
1520
+ *
1521
+ * @returns number
1522
+ */
1523
+ ubit25le(): number;
1524
+ /**
1525
+ * Bit field reader
1526
+ *
1527
+ * Note: When returning to a byte read, remaining bits are dropped
1528
+ *
1529
+ * @returns number
1530
+ */
1531
+ ubit25be(): number;
1532
+ /**
1533
+ * Bit field reader
1534
+ *
1535
+ * Note: When returning to a byte read, remaining bits are dropped
1536
+ *
1537
+ * @param {boolean} unsigned - if the value is unsigned
1538
+ * @returns number
1539
+ */
1540
+ bit26(unsigned?: boolean): number;
1541
+ /**
1542
+ * Bit field reader
1543
+ *
1544
+ * Note: When returning to a byte read, remaining bits are dropped
1545
+ *
1546
+ * @param {boolean} unsigned - if the value is unsigned
1547
+ * @returns number
1548
+ */
1549
+ bit26le(unsigned?: boolean): number;
1550
+ /**
1551
+ * Bit field reader
1552
+ *
1553
+ * Note: When returning to a byte read, remaining bits are dropped
1554
+ *
1555
+ * @param {boolean} unsigned - if the value is unsigned
1556
+ * @returns number
1557
+ */
1558
+ bit26be(unsigned?: boolean): number;
1559
+ /**
1560
+ * Bit field reader
1561
+ *
1562
+ * Note: When returning to a byte read, remaining bits are dropped
1563
+ *
1564
+ * @returns number
1565
+ */
1566
+ ubit26(): number;
1567
+ /**
1568
+ * Bit field reader
1569
+ *
1570
+ * Note: When returning to a byte read, remaining bits are dropped
1571
+ *
1572
+ * @returns number
1573
+ */
1574
+ ubit26le(): number;
1575
+ /**
1576
+ * Bit field reader
1577
+ *
1578
+ * Note: When returning to a byte read, remaining bits are dropped
1579
+ *
1580
+ * @returns number
1581
+ */
1582
+ ubit26be(): number;
1583
+ /**
1584
+ * Bit field reader
1585
+ *
1586
+ * Note: When returning to a byte read, remaining bits are dropped
1587
+ *
1588
+ * @param {boolean} unsigned - if the value is unsigned
1589
+ * @returns number
1590
+ */
1591
+ bit27(unsigned?: boolean): number;
1592
+ /**
1593
+ * Bit field reader
1594
+ *
1595
+ * Note: When returning to a byte read, remaining bits are dropped
1596
+ *
1597
+ * @param {boolean} unsigned - if the value is unsigned
1598
+ * @returns number
1599
+ */
1600
+ bit27le(unsigned?: boolean): number;
1601
+ /**
1602
+ * Bit field reader
1603
+ *
1604
+ * Note: When returning to a byte read, remaining bits are dropped
1605
+ *
1606
+ * @param {boolean} unsigned - if the value is unsigned
1607
+ * @returns number
1608
+ */
1609
+ bit27be(unsigned?: boolean): number;
1610
+ /**
1611
+ * Bit field reader
1612
+ *
1613
+ * Note: When returning to a byte read, remaining bits are dropped
1614
+ *
1615
+ * @returns number
1616
+ */
1617
+ ubit27(): number;
1618
+ /**
1619
+ * Bit field reader
1620
+ *
1621
+ * Note: When returning to a byte read, remaining bits are dropped
1622
+ *
1623
+ * @returns number
1624
+ */
1625
+ ubit27le(): number;
1626
+ /**
1627
+ * Bit field reader
1628
+ *
1629
+ * Note: When returning to a byte read, remaining bits are dropped
1630
+ *
1631
+ * @returns number
1632
+ */
1633
+ ubit27be(): number;
1634
+ /**
1635
+ * Bit field reader
1636
+ *
1637
+ * Note: When returning to a byte read, remaining bits are dropped
1638
+ *
1639
+ * @param {boolean} unsigned - if the value is unsigned
1640
+ * @returns number
1641
+ */
1642
+ bit28(unsigned?: boolean): number;
1643
+ /**
1644
+ * Bit field reader
1645
+ *
1646
+ * Note: When returning to a byte read, remaining bits are dropped
1647
+ *
1648
+ * @param {boolean} unsigned - if the value is unsigned
1649
+ * @returns number
1650
+ */
1651
+ bit28le(unsigned?: boolean): number;
1652
+ /**
1653
+ * Bit field reader
1654
+ *
1655
+ * Note: When returning to a byte read, remaining bits are dropped
1656
+ *
1657
+ * @param {boolean} unsigned - if the value is unsigned
1658
+ * @returns number
1659
+ */
1660
+ bit28be(unsigned?: boolean): number;
1661
+ /**
1662
+ * Bit field reader
1663
+ *
1664
+ * Note: When returning to a byte read, remaining bits are dropped
1665
+ *
1666
+ * @returns number
1667
+ */
1668
+ ubit28(): number;
1669
+ /**
1670
+ * Bit field reader
1671
+ *
1672
+ * Note: When returning to a byte read, remaining bits are dropped
1673
+ *
1674
+ * @returns number
1675
+ */
1676
+ ubit28le(): number;
1677
+ /**
1678
+ * Bit field reader
1679
+ *
1680
+ * Note: When returning to a byte read, remaining bits are dropped
1681
+ *
1682
+ * @returns number
1683
+ */
1684
+ ubit28be(): number;
1685
+ /**
1686
+ * Bit field reader
1687
+ *
1688
+ * Note: When returning to a byte read, remaining bits are dropped
1689
+ *
1690
+ * @param {boolean} unsigned - if the value is unsigned
1691
+ * @returns number
1692
+ */
1693
+ bit29(unsigned?: boolean): number;
1694
+ /**
1695
+ * Bit field reader
1696
+ *
1697
+ * Note: When returning to a byte read, remaining bits are dropped
1698
+ *
1699
+ * @param {boolean} unsigned - if the value is unsigned
1700
+ * @returns number
1701
+ */
1702
+ bit29le(unsigned?: boolean): number;
1703
+ /**
1704
+ * Bit field reader
1705
+ *
1706
+ * Note: When returning to a byte read, remaining bits are dropped
1707
+ *
1708
+ * @param {boolean} unsigned - if the value is unsigned
1709
+ * @returns number
1710
+ */
1711
+ bit29be(unsigned?: boolean): number;
1712
+ /**
1713
+ * Bit field reader
1714
+ *
1715
+ * Note: When returning to a byte read, remaining bits are dropped
1716
+ *
1717
+ * @returns number
1718
+ */
1719
+ ubit29(): number;
1720
+ /**
1721
+ * Bit field reader
1722
+ *
1723
+ * Note: When returning to a byte read, remaining bits are dropped
1724
+ *
1725
+ * @returns number
1726
+ */
1727
+ ubit29le(): number;
1728
+ /**
1729
+ * Bit field reader
1730
+ *
1731
+ * Note: When returning to a byte read, remaining bits are dropped
1732
+ *
1733
+ * @returns number
1734
+ */
1735
+ ubit29be(): number;
1736
+ /**
1737
+ * Bit field reader
1738
+ *
1739
+ * Note: When returning to a byte read, remaining bits are dropped
1740
+ *
1741
+ * @param {boolean} unsigned - if the value is unsigned
1742
+ * @returns number
1743
+ */
1744
+ bit30(unsigned?: boolean): number;
1745
+ /**
1746
+ * Bit field reader
1747
+ *
1748
+ * Note: When returning to a byte read, remaining bits are dropped
1749
+ *
1750
+ * @param {boolean} unsigned - if the value is unsigned
1751
+ * @returns number
1752
+ */
1753
+ bit30le(unsigned?: boolean): number;
1754
+ /**
1755
+ * Bit field reader
1756
+ *
1757
+ * Note: When returning to a byte read, remaining bits are dropped
1758
+ *
1759
+ * @param {boolean} unsigned - if the value is unsigned
1760
+ * @returns number
1761
+ */
1762
+ bit30be(unsigned?: boolean): number;
1763
+ /**
1764
+ * Bit field reader
1765
+ *
1766
+ * Note: When returning to a byte read, remaining bits are dropped
1767
+ *
1768
+ * @returns number
1769
+ */
1770
+ ubit30(): number;
1771
+ /**
1772
+ * Bit field reader
1773
+ *
1774
+ * Note: When returning to a byte read, remaining bits are dropped
1775
+ *
1776
+ * @returns number
1777
+ */
1778
+ ubit30le(): number;
1779
+ /**
1780
+ * Bit field reader
1781
+ *
1782
+ * Note: When returning to a byte read, remaining bits are dropped
1783
+ *
1784
+ * @returns number
1785
+ */
1786
+ ubit30be(): number;
1787
+ /**
1788
+ * Bit field reader
1789
+ *
1790
+ * Note: When returning to a byte read, remaining bits are dropped
1791
+ *
1792
+ * @param {boolean} unsigned - if the value is unsigned
1793
+ * @returns number
1794
+ */
1795
+ bit31(unsigned?: boolean): number;
1796
+ /**
1797
+ * Bit field reader
1798
+ *
1799
+ * Note: When returning to a byte read, remaining bits are dropped
1800
+ *
1801
+ * @param {boolean} unsigned - if the value is unsigned
1802
+ * @returns number
1803
+ */
1804
+ bit31le(unsigned?: boolean): number;
1805
+ /**
1806
+ * Bit field reader
1807
+ *
1808
+ * Note: When returning to a byte read, remaining bits are dropped
1809
+ *
1810
+ * @param {boolean} unsigned - if the value is unsigned
1811
+ * @returns number
1812
+ */
1813
+ bit31be(unsigned?: boolean): number;
1814
+ /**
1815
+ * Bit field reader
1816
+ *
1817
+ * Note: When returning to a byte read, remaining bits are dropped
1818
+ *
1819
+ * @returns number
1820
+ */
1821
+ ubit31(): number;
1822
+ /**
1823
+ * Bit field reader
1824
+ *
1825
+ * Note: When returning to a byte read, remaining bits are dropped
1826
+ *
1827
+ * @returns number
1828
+ */
1829
+ ubit31le(): number;
1830
+ /**
1831
+ * Bit field reader
1832
+ *
1833
+ * Note: When returning to a byte read, remaining bits are dropped
1834
+ *
1835
+ * @returns number
1836
+ */
1837
+ ubit31be(): number;
1838
+ /**
1839
+ * Bit field reader
1840
+ *
1841
+ * Note: When returning to a byte read, remaining bits are dropped
1842
+ *
1843
+ * @param {boolean} unsigned - if the value is unsigned
1844
+ * @returns number
1845
+ */
1846
+ bit32(unsigned?: boolean): number;
1847
+ /**
1848
+ * Bit field reader
1849
+ *
1850
+ * Note: When returning to a byte read, remaining bits are dropped
1851
+ *
1852
+ * @param {boolean} unsigned - if the value is unsigned
1853
+ * @returns number
1854
+ */
1855
+ bit32le(unsigned?: boolean): number;
1856
+ /**
1857
+ * Bit field reader
1858
+ *
1859
+ * Note: When returning to a byte read, remaining bits are dropped
1860
+ *
1861
+ * @param {boolean} unsigned - if the value is unsigned
1862
+ * @returns number
1863
+ */
1864
+ bit32be(unsigned?: boolean): number;
1865
+ /**
1866
+ * Bit field reader
1867
+ *
1868
+ * Note: When returning to a byte read, remaining bits are dropped
1869
+ *
1870
+ * @returns number
1871
+ */
1872
+ ubit32(): number;
1873
+ /**
1874
+ * Bit field reader
1875
+ *
1876
+ * Note: When returning to a byte read, remaining bits are dropped
1877
+ *
1878
+ * @returns number
1879
+ */
1880
+ ubit32le(): number;
1881
+ /**
1882
+ * Bit field reader
1883
+ *
1884
+ * Note: When returning to a byte read, remaining bits are dropped
1885
+ *
1886
+ * @returns number
1887
+ */
1888
+ ubit32be(): number;
1889
+ /**
1890
+ * Bit field reader
1891
+ *
1892
+ * Note: When returning to a byte read, remaining bits are dropped
1893
+ *
1894
+ * @param {number} bits - bits to read
1895
+ * @returns number
1896
+ */
1897
+ readUBitBE(bits: number): number;
1898
+ /**
1899
+ * Bit field reader
1900
+ *
1901
+ * Note: When returning to a byte read, remaining bits are dropped
1902
+ *
1903
+ * @param {number} bits - bits to read
1904
+ * @returns number
1905
+ */
1906
+ ubitbe(bits: number): number;
1907
+ /**
1908
+ * Bit field reader
1909
+ *
1910
+ * Note: When returning to a byte read, remaining bits are dropped
1911
+ *
1912
+ * @param {number} bits - bits to read
1913
+ * @param {boolean} unsigned - if the value is unsigned
1914
+ * @returns number
1915
+ */
1916
+ readBitBE(bits: number, unsigned?: boolean): number;
1917
+ /**
1918
+ * Bit field reader
1919
+ *
1920
+ * Note: When returning to a byte read, remaining bits are dropped
1921
+ *
1922
+ * @param {number} bits - bits to read
1923
+ * @param {boolean} unsigned - if the value is unsigned
1924
+ * @returns number
1925
+ */
1926
+ bitbe(bits: number, unsigned?: boolean): number;
1927
+ /**
1928
+ * Bit field reader
1929
+ *
1930
+ * Note: When returning to a byte read, remaining bits are dropped
1931
+ *
1932
+ * @param {number} bits - bits to read
1933
+ * @returns number
1934
+ */
1935
+ readUBitLE(bits: number): number;
1936
+ /**
1937
+ * Bit field reader
1938
+ *
1939
+ * Note: When returning to a byte read, remaining bits are dropped
1940
+ *
1941
+ * @param {number} bits - bits to read
1942
+ * @returns number
1943
+ */
1944
+ ubitle(bits: number): number;
1945
+ /**
1946
+ * Bit field reader
1947
+ *
1948
+ * Note: When returning to a byte read, remaining bits are dropped
1949
+ *
1950
+ * @param {number} bits - bits to read
1951
+ * @param {boolean} unsigned - if the value is unsigned
1952
+ * @returns number
1953
+ */
1954
+ readBitLE(bits: number, unsigned?: boolean): number;
1955
+ /**
1956
+ * Bit field reader
1957
+ *
1958
+ * Note: When returning to a byte read, remaining bits are dropped
1959
+ *
1960
+ * @param {number} bits - bits to read
1961
+ * @param {boolean} unsigned - if the value is unsigned
1962
+ * @returns number
1963
+ */
1964
+ bitle(bits: number, unsigned?: boolean): number;
1965
+ /**
1966
+ * Read byte
1967
+ *
1968
+ * @param {boolean} unsigned - if value is unsigned or not
1969
+ * @returns number
1970
+ */
1971
+ readByte(unsigned?: boolean): number;
1972
+ /**
1973
+ * Read byte
1974
+ *
1975
+ * @param {boolean} unsigned - if value is unsigned or not
1976
+ * @returns number
1977
+ */
1978
+ byte(unsigned?: boolean): number;
1979
+ /**
1980
+ * Read byte
1981
+ *
1982
+ * @param {boolean} unsigned - if value is unsigned or not
1983
+ * @returns number
1984
+ */
1985
+ int8(unsigned?: boolean): number;
1986
+ /**
1987
+ * Read unsigned byte
1988
+ *
1989
+ * @returns number
1990
+ */
1991
+ readUByte(): number;
1992
+ /**
1993
+ * Read unsigned byte
1994
+ *
1995
+ * @returns number
1996
+ */
1997
+ uint8(): number;
1998
+ /**
1999
+ * Read unsigned byte
2000
+ *
2001
+ * @returns number
2002
+ */
2003
+ ubyte(): number;
2004
+ /**
2005
+ * Read short
2006
+ *
2007
+ * @param {boolean} unsigned - if value is unsigned or not
2008
+ * @param {string} endian - ```big``` or ```little```
2009
+ * @returns number
2010
+ */
2011
+ readInt16(unsigned?: boolean, endian?: string): number;
2012
+ /**
2013
+ * Read short
2014
+ *
2015
+ * @param {boolean} unsigned - if value is unsigned or not
2016
+ * @param {string} endian - ```big``` or ```little```
2017
+ * @returns number
2018
+ */
2019
+ int16(unsigned?: boolean, endian?: string): number;
2020
+ /**
2021
+ * Read short
2022
+ *
2023
+ * @param {boolean} unsigned - if value is unsigned or not
2024
+ * @param {string} endian - ```big``` or ```little```
2025
+ * @returns number
2026
+ */
2027
+ short(unsigned?: boolean, endian?: string): number;
2028
+ /**
2029
+ * Read short
2030
+ *
2031
+ * @param {boolean} unsigned - if value is unsigned or not
2032
+ * @param {string} endian - ```big``` or ```little```
2033
+ * @returns number
2034
+ */
2035
+ word(unsigned?: boolean, endian?: string): number;
2036
+ /**
2037
+ * Read unsigned short
2038
+ *
2039
+ * @param {string} endian - ```big``` or ```little```
2040
+ *
2041
+ * @returns number
2042
+ */
2043
+ readUInt16(endian?: string): number;
2044
+ /**
2045
+ * Read unsigned short
2046
+ *
2047
+ * @param {string} endian - ```big``` or ```little```
2048
+ *
2049
+ * @returns number
2050
+ */
2051
+ uint16(endian?: string): number;
2052
+ /**
2053
+ * Read unsigned short
2054
+ *
2055
+ * @param {string} endian - ```big``` or ```little```
2056
+ *
2057
+ * @returns number
2058
+ */
2059
+ ushort(endian?: string): number;
2060
+ /**
2061
+ * Read unsigned short
2062
+ *
2063
+ * @param {string} endian - ```big``` or ```little```
2064
+ *
2065
+ * @returns number
2066
+ */
2067
+ uword(endian?: string): number;
2068
+ /**
2069
+ * Read unsigned short in little endian
2070
+ *
2071
+ * @returns number
2072
+ */
2073
+ readUInt16LE(): number;
2074
+ /**
2075
+ * Read unsigned short in little endian
2076
+ *
2077
+ * @returns number
2078
+ */
2079
+ uint16le(): number;
2080
+ /**
2081
+ * Read unsigned short in little endian
2082
+ *
2083
+ * @returns number
2084
+ */
2085
+ ushortle(): number;
2086
+ /**
2087
+ * Read unsigned short in little endian
2088
+ *
2089
+ * @returns number
2090
+ */
2091
+ uwordle(): number;
2092
+ /**
2093
+ * Read signed short in little endian
2094
+ *
2095
+ * @returns number
2096
+ */
2097
+ readInt16LE(): number;
2098
+ /**
2099
+ * Read signed short in little endian
2100
+ *
2101
+ * @returns number
2102
+ */
2103
+ int16le(): number;
2104
+ /**
2105
+ * Read signed short in little endian
2106
+ *
2107
+ * @returns number
2108
+ */
2109
+ shortle(): number;
2110
+ /**
2111
+ * Read signed short in little endian
2112
+ *
2113
+ * @returns number
2114
+ */
2115
+ wordle(): number;
2116
+ /**
2117
+ * Read unsigned short in big endian
2118
+ *
2119
+ * @returns number
2120
+ */
2121
+ readUInt16BE(): number;
2122
+ /**
2123
+ * Read unsigned short in big endian
2124
+ *
2125
+ * @returns number
2126
+ */
2127
+ uint16be(): number;
2128
+ /**
2129
+ * Read unsigned short in big endian
2130
+ *
2131
+ * @returns number
2132
+ */
2133
+ ushortbe(): number;
2134
+ /**
2135
+ * Read unsigned short in big endian
2136
+ *
2137
+ * @returns number
2138
+ */
2139
+ uwordbe(): number;
2140
+ /**
2141
+ * Read signed short in big endian
2142
+ *
2143
+ * @returns number
2144
+ */
2145
+ readInt16BE(): number;
2146
+ /**
2147
+ * Read signed short in big endian
2148
+ *
2149
+ * @returns number
2150
+ */
2151
+ int16be(): number;
2152
+ /**
2153
+ * Read signed short in big endian
2154
+ *
2155
+ * @returns number
2156
+ */
2157
+ shortbe(): number;
2158
+ /**
2159
+ * Read signed short in big endian
2160
+ *
2161
+ * @returns number
2162
+ */
2163
+ wordbe(): number;
2164
+ /**
2165
+ * Read half float
2166
+ *
2167
+ * @param {string} endian - ```big``` or ```little```
2168
+ * @returns number
2169
+ */
2170
+ readHalfFloat(endian?: string): number;
2171
+ /**
2172
+ * Read half float
2173
+ *
2174
+ * @param {string} endian - ```big``` or ```little```
2175
+ * @returns number
2176
+ */
2177
+ halffloat(endian?: string): number;
2178
+ /**
2179
+ * Read half float
2180
+ *
2181
+ * @param {string} endian - ```big``` or ```little```
2182
+ * @returns number
2183
+ */
2184
+ half(endian?: string): number;
2185
+ /**
2186
+ * Read half float
2187
+ *
2188
+ * @returns number
2189
+ */
2190
+ readHalfFloatBE(): number;
2191
+ /**
2192
+ * Read half float
2193
+ *
2194
+ * @returns number
2195
+ */
2196
+ halffloatbe(): number;
2197
+ /**
2198
+ * Read half float
2199
+ *
2200
+ * @returns number
2201
+ */
2202
+ halfbe(): number;
2203
+ /**
2204
+ * Read half float
2205
+ *
2206
+ * @returns number
2207
+ */
2208
+ readHalfFloatLE(): number;
2209
+ /**
2210
+ * Read half float
2211
+ *
2212
+ * @returns number
2213
+ */
2214
+ halffloatle(): number;
2215
+ /**
2216
+ * Read half float
2217
+ *
2218
+ * @returns number
2219
+ */
2220
+ halfle(): number;
2221
+ /**
2222
+ * Read 32 bit integer
2223
+ *
2224
+ * @param {boolean} unsigned - if value is unsigned or not
2225
+ * @param {string} endian - ```big``` or ```little```
2226
+ * @returns number
2227
+ */
2228
+ readInt32(unsigned?: boolean, endian?: string): number;
2229
+ /**
2230
+ * Read 32 bit integer
2231
+ *
2232
+ * @param {boolean} unsigned - if value is unsigned or not
2233
+ * @param {string} endian - ```big``` or ```little```
2234
+ * @returns number
2235
+ */
2236
+ int(unsigned?: boolean, endian?: string): number;
2237
+ /**
2238
+ * Read 32 bit integer
2239
+ *
2240
+ * @param {boolean} unsigned - if value is unsigned or not
2241
+ * @param {string} endian - ```big``` or ```little```
2242
+ * @returns number
2243
+ */
2244
+ double(unsigned?: boolean, endian?: string): number;
2245
+ /**
2246
+ * Read 32 bit integer
2247
+ *
2248
+ * @param {boolean} unsigned - if value is unsigned or not
2249
+ * @param {string} endian - ```big``` or ```little```
2250
+ * @returns number
2251
+ */
2252
+ int32(unsigned?: boolean, endian?: string): number;
2253
+ /**
2254
+ * Read 32 bit integer
2255
+ *
2256
+ * @param {boolean} unsigned - if value is unsigned or not
2257
+ * @param {string} endian - ```big``` or ```little```
2258
+ * @returns number
2259
+ */
2260
+ long(unsigned?: boolean, endian?: string): number;
2261
+ /**
2262
+ * Read unsigned 32 bit integer
2263
+ *
2264
+ * @returns number
2265
+ */
2266
+ readUInt(): number;
2267
+ /**
2268
+ * Read unsigned 32 bit integer
2269
+ *
2270
+ * @returns number
2271
+ */
2272
+ uint(): number;
2273
+ /**
2274
+ * Read unsigned 32 bit integer
2275
+ *
2276
+ * @returns number
2277
+ */
2278
+ udouble(): number;
2279
+ /**
2280
+ * Read unsigned 32 bit integer
2281
+ *
2282
+ * @returns number
2283
+ */
2284
+ uint32(): number;
2285
+ /**
2286
+ * Read unsigned 32 bit integer
2287
+ *
2288
+ * @returns number
2289
+ */
2290
+ ulong(): number;
2291
+ /**
2292
+ * Read signed 32 bit integer
2293
+ *
2294
+ * @returns number
2295
+ */
2296
+ readInt32BE(): number;
2297
+ /**
2298
+ * Read signed 32 bit integer
2299
+ *
2300
+ * @returns number
2301
+ */
2302
+ intbe(): number;
2303
+ /**
2304
+ * Read signed 32 bit integer
2305
+ *
2306
+ * @returns number
2307
+ */
2308
+ doublebe(): number;
2309
+ /**
2310
+ * Read signed 32 bit integer
2311
+ *
2312
+ * @returns number
2313
+ */
2314
+ int32be(): number;
2315
+ /**
2316
+ * Read signed 32 bit integer
2317
+ *
2318
+ * @returns number
2319
+ */
2320
+ longbe(): number;
2321
+ /**
2322
+ * Read unsigned 32 bit integer
2323
+ *
2324
+ * @returns number
2325
+ */
2326
+ readUInt32BE(): number;
2327
+ /**
2328
+ * Read unsigned 32 bit integer
2329
+ *
2330
+ * @returns number
2331
+ */
2332
+ uintbe(): number;
2333
+ /**
2334
+ * Read unsigned 32 bit integer
2335
+ *
2336
+ * @returns number
2337
+ */
2338
+ udoublebe(): number;
2339
+ /**
2340
+ * Read unsigned 32 bit integer
2341
+ *
2342
+ * @returns number
2343
+ */
2344
+ uint32be(): number;
2345
+ /**
2346
+ * Read unsigned 32 bit integer
2347
+ *
2348
+ * @returns number
2349
+ */
2350
+ ulongbe(): number;
2351
+ /**
2352
+ * Read signed 32 bit integer
2353
+ *
2354
+ * @returns number
2355
+ */
2356
+ readInt32LE(): number;
2357
+ /**
2358
+ * Read signed 32 bit integer
2359
+ *
2360
+ * @returns number
2361
+ */
2362
+ intle(): number;
2363
+ /**
2364
+ * Read signed 32 bit integer
2365
+ *
2366
+ * @returns number
2367
+ */
2368
+ doublele(): number;
2369
+ /**
2370
+ * Read signed 32 bit integer
2371
+ *
2372
+ * @returns number
2373
+ */
2374
+ int32le(): number;
2375
+ /**
2376
+ * Read signed 32 bit integer
2377
+ *
2378
+ * @returns number
2379
+ */
2380
+ longle(): number;
2381
+ /**
2382
+ * Read signed 32 bit integer
2383
+ *
2384
+ * @returns number
2385
+ */
2386
+ readUInt32LE(): number;
2387
+ /**
2388
+ * Read signed 32 bit integer
2389
+ *
2390
+ * @returns number
2391
+ */
2392
+ uintle(): number;
2393
+ /**
2394
+ * Read signed 32 bit integer
2395
+ *
2396
+ * @returns number
2397
+ */
2398
+ udoublele(): number;
2399
+ /**
2400
+ * Read signed 32 bit integer
2401
+ *
2402
+ * @returns number
2403
+ */
2404
+ uint32le(): number;
2405
+ /**
2406
+ * Read signed 32 bit integer
2407
+ *
2408
+ * @returns number
2409
+ */
2410
+ ulongle(): number;
2411
+ /**
2412
+ * Read float
2413
+ *
2414
+ * @param {string} endian - ```big``` or ```little```
2415
+ * @returns number
2416
+ */
2417
+ readFloat(endian?: string): number;
2418
+ /**
2419
+ * Read float
2420
+ *
2421
+ * @param {string} endian - ```big``` or ```little```
2422
+ * @returns number
2423
+ */
2424
+ float(endian?: string): number;
2425
+ /**
2426
+ * Read float
2427
+ *
2428
+ * @returns number
2429
+ */
2430
+ readFloatBE(): number;
2431
+ /**
2432
+ * Read float
2433
+ *
2434
+ * @returns number
2435
+ */
2436
+ floatbe(): number;
2437
+ /**
2438
+ * Read float
2439
+ *
2440
+ * @returns number
2441
+ */
2442
+ readFloatLE(): number;
2443
+ /**
2444
+ * Read float
2445
+ *
2446
+ * @returns number
2447
+ */
2448
+ floatle(): number;
2449
+ /**
2450
+ * Read signed 64 bit integer
2451
+ * @param {boolean} unsigned - if value is unsigned or not
2452
+ * @param {string} endian - ```big``` or ```little```
2453
+ * @returns number
2454
+ */
2455
+ readInt64(unsigned?: boolean, endian?: string): bigint;
2456
+ /**
2457
+ * Read signed 64 bit integer
2458
+ * @param {boolean} unsigned - if value is unsigned or not
2459
+ * @param {string} endian - ```big``` or ```little```
2460
+ * @returns number
2461
+ */
2462
+ int64(unsigned?: boolean, endian?: string): bigint;
2463
+ /**
2464
+ * Read signed 64 bit integer
2465
+ * @param {boolean} unsigned - if value is unsigned or not
2466
+ * @param {string} endian - ```big``` or ```little```
2467
+ * @returns number
2468
+ */
2469
+ bigint(unsigned?: boolean, endian?: string): bigint;
2470
+ /**
2471
+ * Read signed 64 bit integer
2472
+ * @param {boolean} unsigned - if value is unsigned or not
2473
+ * @param {string} endian - ```big``` or ```little```
2474
+ * @returns number
2475
+ */
2476
+ quad(unsigned?: boolean, endian?: string): bigint;
2477
+ /**
2478
+ * Read unsigned 64 bit integer
2479
+ *
2480
+ * @returns number
2481
+ */
2482
+ readUInt64(): bigint;
2483
+ /**
2484
+ * Read unsigned 64 bit integer
2485
+ *
2486
+ * @returns number
2487
+ */
2488
+ uint64(): bigint;
2489
+ /**
2490
+ * Read unsigned 64 bit integer
2491
+ *
2492
+ * @returns number
2493
+ */
2494
+ ubigint(): bigint;
2495
+ /**
2496
+ * Read unsigned 64 bit integer
2497
+ *
2498
+ * @returns number
2499
+ */
2500
+ uquad(): bigint;
2501
+ /**
2502
+ * Read signed 64 bit integer
2503
+ *
2504
+ * @returns number
2505
+ */
2506
+ readInt64BE(): bigint;
2507
+ /**
2508
+ * Read signed 64 bit integer
2509
+ *
2510
+ * @returns number
2511
+ */
2512
+ int64be(): bigint;
2513
+ /**
2514
+ * Read signed 64 bit integer
2515
+ *
2516
+ * @returns number
2517
+ */
2518
+ bigintbe(): bigint;
2519
+ /**
2520
+ * Read signed 64 bit integer
2521
+ *
2522
+ * @returns number
2523
+ */
2524
+ quadbe(): bigint;
2525
+ /**
2526
+ * Read unsigned 64 bit integer
2527
+ *
2528
+ * @returns number
2529
+ */
2530
+ readUInt64BE(): bigint;
2531
+ /**
2532
+ * Read unsigned 64 bit integer
2533
+ *
2534
+ * @returns number
2535
+ */
2536
+ uint64be(): bigint;
2537
+ /**
2538
+ * Read unsigned 64 bit integer
2539
+ *
2540
+ * @returns number
2541
+ */
2542
+ ubigintbe(): bigint;
2543
+ /**
2544
+ * Read unsigned 64 bit integer
2545
+ *
2546
+ * @returns number
2547
+ */
2548
+ uquadbe(): bigint;
2549
+ /**
2550
+ * Read signed 64 bit integer
2551
+ *
2552
+ * @returns number
2553
+ */
2554
+ readInt64LE(): bigint;
2555
+ /**
2556
+ * Read signed 64 bit integer
2557
+ *
2558
+ * @returns number
2559
+ */
2560
+ int64le(): bigint;
2561
+ /**
2562
+ * Read signed 64 bit integer
2563
+ *
2564
+ * @returns number
2565
+ */
2566
+ bigintle(): bigint;
2567
+ /**
2568
+ * Read signed 64 bit integer
2569
+ *
2570
+ * @returns number
2571
+ */
2572
+ quadle(): bigint;
2573
+ /**
2574
+ * Read unsigned 64 bit integer
2575
+ *
2576
+ * @returns number
2577
+ */
2578
+ readUInt64LE(): bigint;
2579
+ /**
2580
+ * Read unsigned 64 bit integer
2581
+ *
2582
+ * @returns number
2583
+ */
2584
+ uint64le(): bigint;
2585
+ /**
2586
+ * Read unsigned 64 bit integer
2587
+ *
2588
+ * @returns number
2589
+ */
2590
+ ubigintle(): bigint;
2591
+ /**
2592
+ * Read unsigned 64 bit integer
2593
+ *
2594
+ * @returns number
2595
+ */
2596
+ uquadle(): bigint;
2597
+ /**
2598
+ * Read double float
2599
+ *
2600
+ * @param {string} endian - ```big``` or ```little```
2601
+ * @returns number
2602
+ */
2603
+ readDoubleFloat(endian?: string): number;
2604
+ /**
2605
+ * Read double float
2606
+ *
2607
+ * @param {string} endian - ```big``` or ```little```
2608
+ * @returns number
2609
+ */
2610
+ doublefloat(endian?: string): number;
2611
+ /**
2612
+ * Read double float
2613
+ *
2614
+ * @param {string} endian - ```big``` or ```little```
2615
+ * @returns number
2616
+ */
2617
+ dfloat(endian?: string): number;
2618
+ /**
2619
+ * Read double float
2620
+ *
2621
+ * @returns number
2622
+ */
2623
+ readDoubleFloatBE(): number;
2624
+ /**
2625
+ * Read double float
2626
+ *
2627
+ * @returns number
2628
+ */
2629
+ dfloatebe(): number;
2630
+ /**
2631
+ * Read double float
2632
+ *
2633
+ * @returns number
2634
+ */
2635
+ doublefloatbe(): number;
2636
+ /**
2637
+ * Read double float
2638
+ *
2639
+ * @returns number
2640
+ */
2641
+ readDoubleFloatLE(): number;
2642
+ /**
2643
+ * Read double float
2644
+ *
2645
+ * @returns number
2646
+ */
2647
+ dfloatle(): number;
2648
+ /**
2649
+ * Read double float
2650
+ *
2651
+ * @returns number
2652
+ */
2653
+ doublefloatle(): number;
2654
+ /**
2655
+ * Reads string, use options object for different types
2656
+ *
2657
+ * @param {object} options
2658
+ * ```javascript
2659
+ * {
2660
+ * length: number, //for fixed length, non-terminate value utf strings
2661
+ * stringType: "utf-8", //utf-8, utf-16, pascal or wide-pascal
2662
+ * terminateValue: 0x00, // only for non-fixed length utf strings
2663
+ * lengthReadSize: 1, //for pascal strings. 1, 2 or 4 byte length read size
2664
+ * stripNull: true, // removes 0x00 characters
2665
+ * encoding: "utf-8", //TextEncoder accepted types
2666
+ * endian: "little", //for wide-pascal and utf-16
2667
+ * }
2668
+ * ```
2669
+ * @return string
2670
+ */
2671
+ readString(options?: {
2672
+ length?: number;
2673
+ stringType?: string;
2674
+ terminateValue?: number;
2675
+ lengthReadSize?: number;
2676
+ stripNull?: boolean;
2677
+ encoding?: string;
2678
+ endian?: string;
2679
+ }): string;
2680
+ string(options?: {
2681
+ length?: number;
2682
+ stringType?: string;
2683
+ terminateValue?: number;
2684
+ lengthReadSize?: number;
2685
+ stripNull?: boolean;
2686
+ encoding?: string;
2687
+ endian?: string;
2688
+ }): string;
2689
+ /**
2690
+ * Reads UTF-8 (C) string
2691
+ *
2692
+ * @param {number} length - for fixed length utf strings
2693
+ * @param {number} terminateValue - for non-fixed length utf strings
2694
+ * @param {boolean} stripNull - removes 0x00 characters
2695
+ *
2696
+ * @return string
2697
+ */
2698
+ utf8string(length?: number, terminateValue?: number, stripNull?: boolean): string;
2699
+ /**
2700
+ * Reads UTF-8 (C) string
2701
+ *
2702
+ * @param {number} length - for fixed length utf strings
2703
+ * @param {number} terminateValue - for non-fixed length utf strings
2704
+ * @param {boolean} stripNull - removes 0x00 characters
2705
+ *
2706
+ * @return string
2707
+ */
2708
+ cstring(length?: number, terminateValue?: number, stripNull?: boolean): string;
2709
+ /**
2710
+ * Reads ANSI string
2711
+ *
2712
+ * @param {number} length - for fixed length utf strings
2713
+ * @param {number} terminateValue - for non-fixed length utf strings
2714
+ * @param {boolean} stripNull - removes 0x00 characters
2715
+ *
2716
+ * @return string
2717
+ */
2718
+ ansistring(length?: number, terminateValue?: number, stripNull?: boolean): string;
2719
+ /**
2720
+ * Reads UTF-16 (Unicode) string
2721
+ *
2722
+ * @param {number} length - for fixed length utf strings
2723
+ * @param {number} terminateValue - for non-fixed length utf strings
2724
+ * @param {boolean} stripNull - removes 0x00 characters
2725
+ * @param {string} endian - ``big`` or ``little``
2726
+ *
2727
+ * @return string
2728
+ */
2729
+ utf16string(length?: number, terminateValue?: number, stripNull?: boolean, endian?: string): string;
2730
+ /**
2731
+ * Reads UTF-16 (Unicode) string
2732
+ *
2733
+ * @param {number} length - for fixed length utf strings
2734
+ * @param {number} terminateValue - for non-fixed length utf strings
2735
+ * @param {boolean} stripNull - removes 0x00 characters
2736
+ * @param {string} endian - ``big`` or ``little``
2737
+ *
2738
+ * @return string
2739
+ */
2740
+ unistring(length?: number, terminateValue?: number, stripNull?: boolean, endian?: string): string;
2741
+ /**
2742
+ * Reads UTF-16 (Unicode) string in little endian order
2743
+ *
2744
+ * @param {number} length - for fixed length utf strings
2745
+ * @param {number} terminateValue - for non-fixed length utf strings
2746
+ * @param {boolean} stripNull - removes 0x00 characters
2747
+ *
2748
+ * @return string
2749
+ */
2750
+ utf16stringle(length?: number, terminateValue?: number, stripNull?: boolean): string;
2751
+ /**
2752
+ * Reads UTF-16 (Unicode) string in little endian order
2753
+ *
2754
+ * @param {number} length - for fixed length utf strings
2755
+ * @param {number} terminateValue - for non-fixed length utf strings
2756
+ * @param {boolean} stripNull - removes 0x00 characters
2757
+ *
2758
+ * @return string
2759
+ */
2760
+ unistringle(length?: number, terminateValue?: number, stripNull?: boolean): string;
2761
+ /**
2762
+ * Reads UTF-16 (Unicode) string in big endian order
2763
+ *
2764
+ * @param {number} length - for fixed length utf strings
2765
+ * @param {number} terminateValue - for non-fixed length utf strings
2766
+ * @param {boolean} stripNull - removes 0x00 characters
2767
+ *
2768
+ * @return string
2769
+ */
2770
+ utf16stringbe(length?: number, terminateValue?: number, stripNull?: boolean): string;
2771
+ /**
2772
+ * Reads UTF-16 (Unicode) string in big endian order
2773
+ *
2774
+ * @param {number} length - for fixed length utf strings
2775
+ * @param {number} terminateValue - for non-fixed length utf strings
2776
+ * @param {boolean} stripNull - removes 0x00 characters
2777
+ *
2778
+ * @return string
2779
+ */
2780
+ unistringbe(length?: number, terminateValue?: number, stripNull?: boolean): string;
2781
+ /**
2782
+ * Reads Pascal string
2783
+ *
2784
+ * @param {number} lengthReadSize - 1, 2 or 4 byte length write size (default 1)
2785
+ * @param {boolean} stripNull - removes 0x00 characters
2786
+ * @param {string} endian - ``big`` or ``little``
2787
+ *
2788
+ * @return string
2789
+ */
2790
+ pstring(lengthReadSize?: number, stripNull?: boolean, endian?: string): string;
2791
+ /**
2792
+ * Reads Pascal string 1 byte length read
2793
+ *
2794
+ * @param {boolean} stripNull - removes 0x00 characters
2795
+ * @param {string} endian - ``big`` or ``little``
2796
+ *
2797
+ * @return string
2798
+ */
2799
+ pstring1(stripNull?: boolean, endian?: string): string;
2800
+ /**
2801
+ * Reads Pascal string 1 byte length read in little endian order
2802
+ *
2803
+ * @param {boolean} stripNull - removes 0x00 characters
2804
+ *
2805
+ * @return string
2806
+ */
2807
+ pstring1le(stripNull?: boolean): string;
2808
+ /**
2809
+ * Reads Pascal string 1 byte length read in big endian order
2810
+ *
2811
+ * @param {boolean} stripNull - removes 0x00 characters
2812
+ *
2813
+ * @return string
2814
+ */
2815
+ pstring1be(stripNull?: boolean): string;
2816
+ /**
2817
+ * Reads Pascal string 2 byte length read
2818
+ *
2819
+ * @param {boolean} stripNull - removes 0x00 characters
2820
+ * @param {string} endian - ``big`` or ``little``
2821
+ *
2822
+ * @return string
2823
+ */
2824
+ pstring2(stripNull?: boolean, endian?: string): string;
2825
+ /**
2826
+ * Reads Pascal string 2 byte length read in little endian order
2827
+ *
2828
+ * @param {boolean} stripNull - removes 0x00 characters
2829
+ *
2830
+ * @return string
2831
+ */
2832
+ pstring2le(stripNull?: boolean): string;
2833
+ /**
2834
+ * Reads Pascal string 2 byte length read in big endian order
2835
+ *
2836
+ * @param {boolean} stripNull - removes 0x00 characters
2837
+ *
2838
+ * @return string
2839
+ */
2840
+ pstring2be(stripNull?: boolean): string;
2841
+ /**
2842
+ * Reads Pascal string 4 byte length read
2843
+ *
2844
+ * @param {boolean} stripNull - removes 0x00 characters
2845
+ * @param {string} endian - ``big`` or ``little``
2846
+ *
2847
+ * @return string
2848
+ */
2849
+ pstring4(stripNull?: boolean, endian?: string): string;
2850
+ /**
2851
+ * Reads Pascal string 4 byte length read in little endian order
2852
+ *
2853
+ * @param {boolean} stripNull - removes 0x00 characters
2854
+ *
2855
+ * @return string
2856
+ */
2857
+ pstring4le(stripNull?: boolean): string;
2858
+ /**
2859
+ * Reads Pascal string 4 byte length read in big endian order
2860
+ *
2861
+ * @param {boolean} stripNull - removes 0x00 characters
2862
+ *
2863
+ * @return string
2864
+ */
2865
+ pstring4be(stripNull?: boolean): string;
2866
+ /**
2867
+ * Reads Wide-Pascal string
2868
+ *
2869
+ * @param {number} lengthReadSize - 1, 2 or 4 byte length write size (default 1)
2870
+ * @param {boolean} stripNull - removes 0x00 characters
2871
+ * @param {string} endian - ``big`` or ``little``
2872
+ *
2873
+ * @return string
2874
+ */
2875
+ wpstring(lengthReadSize?: number, stripNull?: boolean, endian?: string): string;
2876
+ /**
2877
+ * Reads Wide-Pascal string 1 byte length read
2878
+ *
2879
+ * @param {boolean} stripNull - removes 0x00 characters
2880
+ * @param {string} endian - ``big`` or ``little``
2881
+ *
2882
+ * @return string
2883
+ */
2884
+ wpstring1(stripNull?: boolean, endian?: string): string;
2885
+ /**
2886
+ * Reads Wide-Pascal string 2 byte length read
2887
+ *
2888
+ * @param {boolean} stripNull - removes 0x00 characters
2889
+ * @param {string} endian - ``big`` or ``little``
2890
+ *
2891
+ * @return string
2892
+ */
2893
+ wpstring2(stripNull?: boolean, endian?: string): string;
2894
+ /**
2895
+ * Reads Wide-Pascal string 2 byte length read in little endian order
2896
+ *
2897
+ * @param {boolean} stripNull - removes 0x00 characters
2898
+ *
2899
+ * @return string
2900
+ */
2901
+ wpstring2le(stripNull?: boolean): string;
2902
+ /**
2903
+ * Reads Wide-Pascal string 2 byte length read in big endian order
2904
+ *
2905
+ * @param {boolean} stripNull - removes 0x00 characters
2906
+ *
2907
+ * @return string
2908
+ */
2909
+ wpstring2be(stripNull?: boolean): string;
2910
+ /**
2911
+ * Reads Wide-Pascal string 4 byte length read
2912
+ *
2913
+ * @param {boolean} stripNull - removes 0x00 characters
2914
+ * @param {string} endian - ``big`` or ``little``
2915
+ *
2916
+ * @return string
2917
+ */
2918
+ wpstring4(stripNull?: boolean, endian?: string): string;
2919
+ /**
2920
+ * Reads Wide-Pascal string 4 byte length read in big endian order
2921
+ *
2922
+ * @param {boolean} stripNull - removes 0x00 characters
2923
+ *
2924
+ * @return string
2925
+ */
2926
+ wpstring4be(stripNull?: boolean): string;
2927
+ /**
2928
+ * Reads Wide-Pascal string 4 byte length read in little endian order
2929
+ *
2930
+ * @param {boolean} stripNull - removes 0x00 characters
2931
+ *
2932
+ * @return string
2933
+ */
2934
+ wpstring4le(stripNull?: boolean): string;
2935
+ }
2936
+ //# sourceMappingURL=reader.d.ts.map