Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@helios-lang/codec-utils

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@helios-lang/codec-utils - npm Package Compare versions

Comparing version 0.1.7 to 0.1.8

2

package.json
{
"name": "@helios-lang/codec-utils",
"version": "0.1.7",
"version": "0.1.8",
"description": "Primitive manipulation functions commonly used in encoding and decoding algorithms",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -13,2 +13,6 @@ export class ByteStream {

constructor(bytes: number[] | Uint8Array, pos?: number);
/**
* Copy ByteStream so mutations doesn't change original ByteStream
* @returns {ByteStream}
*/
copy(): ByteStream;

@@ -15,0 +19,0 @@ /**

@@ -39,5 +39,10 @@ export class ByteStream {

/**
* Copy ByteStream so mutations doesn't change original ByteStream
* @returns {ByteStream}
*/
copy() {
return new ByteStream(this.#bytes)
return new ByteStream(this.#bytes, this.#pos)
}
/**

@@ -44,0 +49,0 @@ * @returns {boolean}

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