structurae
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -7,2 +7,6 @@ # Changelog | ||
## [1.2.1] - 2019-06-10 | ||
### Fix | ||
- Correct byte offsets for strings in RecordArray | ||
## [1.2.0] - 2019-06-10 | ||
@@ -9,0 +13,0 @@ ### Added |
@@ -105,3 +105,3 @@ const utilities = require('./utilities'); | ||
schema: { value: schema }, | ||
byteView: { value: new StringView(this.buffer) }, | ||
byteView: { value: new StringView(this.buffer, this.byteOffset, this.byteLength) }, | ||
}); | ||
@@ -162,3 +162,3 @@ } | ||
getArray(offset, size, type) { | ||
return new typedArrays[type](this.buffer, offset, size); | ||
return new typedArrays[type](this.buffer, this.byteOffset + offset, size); | ||
} | ||
@@ -244,3 +244,3 @@ | ||
setArray(offset, value, size, type) { | ||
const array = new typedArrays[type](this.buffer, offset, size); | ||
const array = new typedArrays[type](this.buffer, this.byteOffset + offset, size); | ||
if (value.length < array.length) array.fill(0); | ||
@@ -247,0 +247,0 @@ array.set(value); |
{ | ||
"name": "structurae", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "Data structures for performance-sensitive modern JavaScript applications.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
161653