3.4.3 • Published 1 year ago

byte-list v3.4.3

Weekly downloads
48
License
ISC
Repository
github
Last release
1 year ago

ByteList

Node.js CI Coverage Status

   $ 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

1 year ago

3.4.3

1 year ago

3.4.2

1 year ago

3.4.1

1 year ago

3.3.0

2 years ago

3.2.1

3 years ago

3.2.0

3 years ago

3.1.8

3 years ago

3.1.7

3 years ago

3.1.6

3 years ago

3.1.5

3 years ago

2.1.4

4 years ago

2.1.3

4 years ago

2.1.2

4 years ago

2.1.1

4 years ago

2.1.0

5 years ago

2.0.4

5 years ago

2.0.3

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.6.2

5 years ago

1.6.1

5 years ago

1.6.0

5 years ago

1.5.3

5 years ago

1.5.2

5 years ago

1.5.1

5 years ago

1.5.0

5 years ago

1.4.0

5 years ago

1.3.1

6 years ago

1.3.0

6 years ago

1.2.0

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago