@bfchain/bnrtc2-buffer
Advanced tools
Comparing version 2.0.15 to 2.0.16
@@ -66,4 +66,3 @@ "use strict"; | ||
this._buf.set(oldData, this._dataOffset); | ||
this._endOffset = | ||
Bnrtc2Buffer.HEAD_RESERVE_SIZE + size + oldDataLen; | ||
this._endOffset = Bnrtc2Buffer.HEAD_RESERVE_SIZE + size + oldDataLen; | ||
} | ||
@@ -93,3 +92,3 @@ this._isClone = false; | ||
get length() { | ||
return this._endOffset - this._dataOffset; | ||
return (this._endOffset - this._dataOffset); | ||
} | ||
@@ -116,3 +115,3 @@ get capacity() { | ||
putU8(value) { | ||
value = value & 0xff; | ||
value = value & 0XFF; | ||
const buf = this.checkSpace(1, WriteDirection.PUT); | ||
@@ -124,3 +123,3 @@ buf._dataOffset -= 1; | ||
putU16(value) { | ||
value = value & 0xffff; | ||
value = value & 0XFFFF; | ||
const buf = this.checkSpace(2, WriteDirection.PUT); | ||
@@ -160,3 +159,3 @@ buf._dataOffset -= 2; | ||
pushU8(value) { | ||
value = value & 0xff; | ||
value = value & 0XFF; | ||
const buf = this.checkSpace(1, WriteDirection.PUSH); | ||
@@ -168,3 +167,3 @@ buf._buf[this._endOffset] = value; | ||
pushU16(value) { | ||
value = value & 0xffff; | ||
value = value & 0XFFFF; | ||
const buf = this.checkSpace(2, WriteDirection.PUSH); | ||
@@ -171,0 +170,0 @@ buf._buf[this._endOffset] = value >> 8; |
{ | ||
"name": "@bfchain/bnrtc2-buffer", | ||
"version": "2.0.15", | ||
"version": "2.0.16", | ||
"main": "./build/index.js", | ||
@@ -8,3 +8,3 @@ "types": "./build/index.d.ts", | ||
"dependencies": { | ||
"@bfchain/bnrtc2-buffer-typings": "^2.0.15" | ||
"@bfchain/bnrtc2-buffer-typings": "^2.0.16" | ||
}, | ||
@@ -11,0 +11,0 @@ "files": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10768
325