@hazae41/binary
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -1,10 +0,16 @@ | ||
declare class Binary<T extends Uint8Array> { | ||
bytes: T; | ||
declare class Binary<T extends ArrayBufferView> { | ||
private _view; | ||
private _bytes; | ||
private _data; | ||
private _buffer; | ||
offset: number; | ||
readonly data: DataView; | ||
/** | ||
* An object with a Buffer and an offset | ||
* An object with bytes and an offset | ||
* @param bytes Buffer | ||
*/ | ||
constructor(bytes: T); | ||
constructor(view: T, offset?: number); | ||
get view(): T; | ||
set view(view: T); | ||
get bytes(): Uint8Array; | ||
get data(): DataView; | ||
get buffer(): Buffer; | ||
@@ -11,0 +17,0 @@ /** |
{ | ||
"type": "module", | ||
"name": "@hazae41/binary", | ||
"version": "1.1.0", | ||
"description": "Zero-copy Buffer reader and writer", | ||
"version": "1.1.1", | ||
"description": "Zero-copy bytes reader and writer", | ||
"homepage": "https://github.com/hazae41/binary", | ||
@@ -7,0 +7,0 @@ "repository": "github:hazae41/binary", |
@@ -5,3 +5,3 @@ <div align="center"> | ||
<h3 align="center"> | ||
Zero-copy Buffer reader and writer 🏎️ | ||
Zero-copy bytes reader and writer 🏎️ | ||
</h3> | ||
@@ -19,2 +19,3 @@ | ||
- No external dependency | ||
- Compatible with both Uint8Array and Buffer | ||
- Unit tested | ||
@@ -21,0 +22,0 @@ |
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
67985
24
1118
39