Socket
Socket
Sign inDemoInstall

@hazae41/binary

Package Overview
Dependencies
Maintainers
1
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hazae41/binary - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

dist/cjs/libs/bytes/bytes.cjs

16

dist/types/mods/binary/binary.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc