You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

pvutils

Package Overview
Dependencies
Maintainers
2
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.7 to 1.0.8

2

package.json

@@ -29,4 +29,4 @@ {

"name": "pvutils",
"version": "1.0.7",
"version": "1.0.8",
"license": "MIT"
}

@@ -165,3 +165,3 @@ //**************************************************************************************

* Concatenate two ArrayBuffers
* @param {...ArrayBuffer} buffers First ArrayBuffer (first part of concatenated array)
* @param {...ArrayBuffer} buffers Set of ArrayBuffer
*/

@@ -194,2 +194,31 @@ export function utilConcatBuf(...buffers)

/**
* Concatenate two Uint8Array
* @param {...Uint8Array} views Set of Uint8Array
*/
export function utilConcatView(...views)
{
//region Initial variables
let outputLength = 0;
let prevLength = 0;
//endregion
//region Calculate output length
for(const view of views)
outputLength += view.length;
//endregion
const retBuf = new ArrayBuffer(outputLength);
const retView = new Uint8Array(retBuf);
for(const view of views)
{
retView.set(view, prevLength);
prevLength += view.length;
}
return retView;
}
//**************************************************************************************
/**
* Decoding of "two complement" values

@@ -196,0 +225,0 @@ * The function must be called in scope of instance of "hexBlock" class ("valueHex" and "warnings" properties must be present)

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc