source: trip-planner-front/node_modules/image-size/lib/readUInt.js@ 188ee53

Last change on this file since 188ee53 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
4function 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
11module.exports = readUInt;
Note: See TracBrowser for help on using the repository browser.