@hazae41/binary
Advanced tools
Comparing version 1.1.9 to 1.1.10
@@ -22,3 +22,3 @@ declare class Binary<T extends ArrayBufferView = ArrayBufferView> { | ||
*/ | ||
static alloc(length: number): Binary<Buffer>; | ||
static alloc(length: number): Binary<Uint8Array>; | ||
/** | ||
@@ -29,4 +29,10 @@ * Create a new Binary using Buffer.allocUnsafe | ||
*/ | ||
static allocUnsafe(length: number): Binary<Buffer>; | ||
static allocUnsafe(length: number): Binary<Uint8Array>; | ||
/** | ||
* Create a new Binary with random bytes | ||
* @param length | ||
* @returns Binary | ||
*/ | ||
static random(length: number): Binary<Uint8Array>; | ||
/** | ||
* @returns number of remaining bytes | ||
@@ -33,0 +39,0 @@ */ |
{ | ||
"type": "module", | ||
"name": "@hazae41/binary", | ||
"version": "1.1.9", | ||
"version": "1.1.10", | ||
"description": "Zero-copy bytes reader and writer", | ||
@@ -6,0 +6,0 @@ "homepage": "https://github.com/hazae41/binary", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
84809
1284