binutils64 0.1.1 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -11,11 +11,11 @@ You can install this package either by using npm or by downloading the source fr
11
11
 
12
12
  To install using npm open your terminal (or command line), make sure you're in your application directory and execute the following command:
13
13
 
14
- npm install binutils
14
+ npm install binutils64
15
15
 
16
16
  You can then start using the package by requiring it from your application as such:
17
17
 
18
- var binutils = require('binutils');
18
+ var binutils = require('binutils64');
19
19
 
20
20
  BinaryReader Class
21
21
  ------------------
@@ -160,4 +160,4 @@ TODO
160
160
 
161
161
  * Add support for 64-bit integers
162
162
  * Add support for strings
163
- * Add support for booleans
163
+ * Add support for booleans
package/binutils.js CHANGED
@@ -60,7 +60,7 @@ BinaryReader.prototype = {
60
60
  return 0;
61
61
  }
62
62
 
63
- var s_Val = (this.Endianness == 'little') ? this.ByteBuffer.readUInt32LE(0) : this.ByteBuffer.readUInt32BE(0);
63
+ var s_Val = (this.Endianness == 'little') ? this.ByteBuffer.readBigUInt64LE(0) : this.ByteBuffer.readBigUInt64BE(0);
64
64
  this.ByteBuffer = this.ByteBuffer.slice(8);
65
65
  this.Position += 8;
66
66
  return s_Val;
@@ -104,7 +104,7 @@ BinaryReader.prototype = {
104
104
  return 0;
105
105
  }
106
106
 
107
- var s_Val = (this.Endianness == 'little') ? this.ByteBuffer.readInt32LE(0) : this.ByteBuffer.readInt32BE(0);
107
+ var s_Val = (this.Endianness == 'little') ? this.ByteBuffer.readBigInt64LE(0) : this.ByteBuffer.readBigInt64BE(0);
108
108
  this.ByteBuffer = this.ByteBuffer.slice(8);
109
109
  this.Position += 8;
110
110
  return s_Val;
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "binutils64",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "author": "Mihail Shumilov <mschumilow@gmail.com>",
5
5
  "description": "A .NET-like BinaryReader and BinaryWriter with endianness support.",
6
6
  "main": "./binutils.js",
7
7
  "engines": {
8
- "node": ">=0.10"
8
+ "node": ">=0.12"
9
9
  },
10
10
  "repository": {
11
11
  "type" : "git",