memory-pager
Advanced tools
Comparing version 1.3.1 to 1.4.0
@@ -11,2 +11,3 @@ module.exports = Pager | ||
this.deduplicate = opts ? opts.deduplicate : null | ||
this.zeros = this.deduplicate ? alloc(this.deduplicate.length) : null | ||
} | ||
@@ -60,3 +61,3 @@ | ||
if (!buf) { | ||
if (!buf || (this.zeros && buf.equals && buf.equals(this.zeros))) { | ||
this.pages[i] = undefined | ||
@@ -63,0 +64,0 @@ return |
{ | ||
"name": "memory-pager", | ||
"version": "1.3.1", | ||
"version": "1.4.0", | ||
"description": "Access memory using small fixed sized buffers", | ||
@@ -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
7435
154