333
schangxiang@126.com
2025-09-19 18966e02fb573c7e2bb0c6426ed792b38b910940
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
'use strict';
 
// put / get number types
module.exports = {
  Double: {
    size: 8,
    writeBE: 'writeDoubleBE',
    writeLE: 'writeDoubleLE',
    readBE: 'readDoubleBE',
    readLE: 'readDoubleLE',
  },
  Float: {
    size: 4,
    writeBE: 'writeFloatBE',
    writeLE: 'writeFloatLE',
    readBE: 'readFloatBE',
    readLE: 'readFloatLE',
  },
  Int8: {
    size: 1,
    writeBE: 'writeInt8',
    writeLE: 'writeInt8',
    readBE: 'readInt8',
    readLE: 'readInt8',
  },
  UInt8: {
    size: 1,
    writeBE: 'writeUInt8',
    writeLE: 'writeUInt8',
    readBE: 'readUInt8',
    readLE: 'readUInt8',
  },
  Short: {
    size: 2,
    writeBE: 'writeInt16BE',
    writeLE: 'writeInt16LE',
    readBE: 'readInt16BE',
    readLE: 'readInt16LE',
  },
  Int16: {
    size: 2,
    writeBE: 'writeInt16BE',
    writeLE: 'writeInt16LE',
    readBE: 'readInt16BE',
    readLE: 'readInt16LE',
  },
  UInt16: {
    size: 2,
    writeBE: 'writeUInt16BE',
    writeLE: 'writeUInt16LE',
    readBE: 'readUInt16BE',
    readLE: 'readUInt16LE',
  },
  Int: {
    size: 4,
    writeBE: 'writeInt32BE',
    writeLE: 'writeInt32LE',
    readBE: 'readInt32BE',
    readLE: 'readInt32LE',
  },
  UInt: {
    size: 4,
    writeBE: 'writeUInt32BE',
    writeLE: 'writeUInt32LE',
    readBE: 'readUInt32BE',
    readLE: 'readUInt32LE',
  },
  Int32: {
    size: 4,
    writeBE: 'writeInt32BE',
    writeLE: 'writeInt32LE',
    readBE: 'readInt32BE',
    readLE: 'readInt32LE',
  },
  UInt32: {
    size: 4,
    writeBE: 'writeUInt32BE',
    writeLE: 'writeUInt32LE',
    readBE: 'readUInt32BE',
    readLE: 'readUInt32LE',
  },
};