Socket
Socket
Sign inDemoInstall

smart-buffer

Package Overview
Dependencies
0
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.1.0 to 4.2.0

2

build/smartbuffer.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc