Last change
on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
307 bytes
|
Line | |
---|
1 | 'use strict';
|
---|
2 |
|
---|
3 | // Abstract reading multi-byte unsigned integers
|
---|
4 | function readUInt (buffer, bits, offset, isBigEndian) {
|
---|
5 | offset = offset || 0;
|
---|
6 | var endian = !!isBigEndian ? 'BE' : 'LE';
|
---|
7 | var method = buffer['readUInt' + bits + endian];
|
---|
8 | return method.call(buffer, offset);
|
---|
9 | }
|
---|
10 |
|
---|
11 | module.exports = readUInt;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.