3.4.3 • Published 2 years ago
byte-list v3.4.3
ByteList
$ npm install byte-list
Usage
const { ByteList } = require('byte-list');
const bytes = new ByteList();
const myNumber = 0xABCD1234;
console.log(myNumber);
// 2882343476 (0xABCD1234)
bytes.writeUInt32(myNumber);
bytes.index = 0;
console.log(bytes.readUInt32());
// 2882343476 (0xABCD1234)
bytes.index = 0;
console.log(bytes.readUInt16());
// 43981 (0xABCD)
console.log(bytes.readUInt16());
// 4660 (0x1234)
bytes.index = 0;
console.log(bytes.readByte());
// 171 (0xAB)
console.log(bytes.readByte());
// 205 (0xCD)
console.log(bytes.readByte());
// 18 (0x12)
console.log(bytes.readByte());
// 52 (0x34)
3.4.0
2 years ago
3.4.3
2 years ago
3.4.2
2 years ago
3.4.1
2 years ago
3.3.0
4 years ago
3.2.1
4 years ago
3.2.0
4 years ago
3.1.8
4 years ago
3.1.7
4 years ago
3.1.6
4 years ago
3.1.5
4 years ago
2.1.4
5 years ago
2.1.3
5 years ago
2.1.2
5 years ago
2.1.1
5 years ago
2.1.0
6 years ago
2.0.4
6 years ago
2.0.3
6 years ago
2.0.2
6 years ago
2.0.1
6 years ago
2.0.0
6 years ago
1.6.2
6 years ago
1.6.1
6 years ago
1.6.0
6 years ago
1.5.3
6 years ago
1.5.2
6 years ago
1.5.1
6 years ago
1.5.0
6 years ago
1.4.0
6 years ago
1.3.1
7 years ago
1.3.0
7 years ago
1.2.0
7 years ago
1.1.3
7 years ago
1.1.2
7 years ago
1.1.1
7 years ago
1.1.0
7 years ago