smart-buffer
Advanced tools
Comparing version 4.1.0 to 4.2.0
@@ -36,3 +36,3 @@ "use strict"; | ||
else if (options.buff) { | ||
if (options.buff instanceof Buffer) { | ||
if (Buffer.isBuffer(options.buff)) { | ||
this._buff = options.buff; | ||
@@ -39,0 +39,0 @@ this.length = options.buff.length; |
{ | ||
"name": "smart-buffer", | ||
"version": "4.1.0", | ||
"version": "4.2.0", | ||
"description": "smart-buffer is a Buffer wrapper that adds automatic read & write offset tracking, string operations, data insertions, and more.", | ||
"main": "build/smartbuffer.js", | ||
"contributors": ["syvita"], | ||
"homepage": "https://github.com/JoshGlazebrook/smart-buffer/", | ||
@@ -7,0 +8,0 @@ "repository": { |
@@ -266,3 +266,4 @@ smart-buffer [![Build Status](https://travis-ci.org/JoshGlazebrook/smart-buffer.svg?branch=master)](https://travis-ci.org/JoshGlazebrook/smart-buffer) [![Coverage Status](https://coveralls.io/repos/github/JoshGlazebrook/smart-buffer/badge.svg?branch=master)](https://coveralls.io/github/JoshGlazebrook/smart-buffer?branch=master) | ||
### readInt8([offset]) | ||
### buff.readInt8([offset]) | ||
### buff.readUInt8([offset]) | ||
- ```offset``` *{number}* Optional position to start reading data from. **Default**: ```Auto managed offset``` | ||
@@ -360,3 +361,3 @@ - Returns *{number}* | ||
### buff.eadDoubleBE([offset]) | ||
### buff.readDoubleBE([offset]) | ||
### buff.readDoubleLE([offset]) | ||
@@ -634,2 +635,2 @@ - ```offset``` *{number}* Optional position to start reading data from. **Default**: ```Auto managed offset``` | ||
This work is licensed under the [MIT license](http://en.wikipedia.org/wiki/MIT_License). | ||
This work is licensed under the [MIT license](http://en.wikipedia.org/wiki/MIT_License). |
Sorry, the diff of this file is not supported yet
138027
634