New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

h1emu-core

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

h1emu-core - npm Package Compare versions

Comparing version 0.8.11 to 0.8.12

24

h1emu_core.d.ts
/* tslint:disable */
/* eslint-disable */
/**
* @param {Uint8Array} data
* @param {number} crc_seed
* @returns {Uint8Array}
*/
export function append_crc_legacy(data: Uint8Array, crc_seed: number): Uint8Array;
/**
* @param {Uint8Array} data
* @param {number} crc_seed
* @returns {number}
*/
export function crc32_legacy(data: Uint8Array, crc_seed: number): number;
/**
* @param {string} string

@@ -37,3 +25,15 @@ * @returns {number}

/**
* @param {Uint8Array} data
* @param {number} crc_seed
* @returns {Uint8Array}
*/
export function append_crc_legacy(data: Uint8Array, crc_seed: number): Uint8Array;
/**
* @param {Uint8Array} data
* @param {number} crc_seed
* @returns {number}
*/
export function crc32_legacy(data: Uint8Array, crc_seed: number): number;
/**
*/
export enum EncryptMethod {

@@ -40,0 +40,0 @@ EncryptMethodNone,

@@ -71,35 +71,3 @@ let imports = {};

}
/**
* @param {Uint8Array} data
* @param {number} crc_seed
* @returns {Uint8Array}
*/
module.exports.append_crc_legacy = function(data, crc_seed) {
try {
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
const ptr0 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
const len0 = WASM_VECTOR_LEN;
wasm.append_crc_legacy(retptr, ptr0, len0, crc_seed);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
var v1 = getArrayU8FromWasm0(r0, r1).slice();
wasm.__wbindgen_free(r0, r1 * 1);
return v1;
} finally {
wasm.__wbindgen_add_to_stack_pointer(16);
}
};
/**
* @param {Uint8Array} data
* @param {number} crc_seed
* @returns {number}
*/
module.exports.crc32_legacy = function(data, crc_seed) {
const ptr0 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
const len0 = WASM_VECTOR_LEN;
const ret = wasm.crc32_legacy(ptr0, len0, crc_seed);
return ret >>> 0;
};
let cachedTextEncoder = new TextEncoder('utf-8');

@@ -237,2 +205,35 @@

/**
* @param {Uint8Array} data
* @param {number} crc_seed
* @returns {Uint8Array}
*/
module.exports.append_crc_legacy = function(data, crc_seed) {
try {
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
const ptr0 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
const len0 = WASM_VECTOR_LEN;
wasm.append_crc_legacy(retptr, ptr0, len0, crc_seed);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
var v1 = getArrayU8FromWasm0(r0, r1).slice();
wasm.__wbindgen_free(r0, r1 * 1);
return v1;
} finally {
wasm.__wbindgen_add_to_stack_pointer(16);
}
};
/**
* @param {Uint8Array} data
* @param {number} crc_seed
* @returns {number}
*/
module.exports.crc32_legacy = function(data, crc_seed) {
const ptr0 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
const len0 = WASM_VECTOR_LEN;
const ret = wasm.crc32_legacy(ptr0, len0, crc_seed);
return ret >>> 0;
};
function handleError(f, args) {

@@ -239,0 +240,0 @@ try {

{
"name": "h1emu-core",
"description": "Utility library used in h1emu.",
"version": "0.8.11",
"version": "0.8.12",
"license": "BSD-3-Clause",

@@ -6,0 +6,0 @@ "repository": {

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