@noir-lang/noir_wasm
Advanced tools
Comparing version 0.1.1-fd64be5 to 0.2.0-007ab75
@@ -7,2 +7,4 @@ /* tslint:disable */ | ||
export function acir_to_bytes(a: number, b: number): void; | ||
export function acir_read_bytes(a: number, b: number): number; | ||
export function acir_write_bytes(a: number, b: number): void; | ||
export function build_info(): number; | ||
@@ -9,0 +11,0 @@ export function __wbindgen_export_0(a: number): number; |
@@ -19,4 +19,14 @@ /* tslint:disable */ | ||
/** | ||
* @param {Uint8Array} bytes | ||
* @returns {any} | ||
*/ | ||
export function acir_read_bytes(bytes: Uint8Array): any; | ||
/** | ||
* @param {any} acir | ||
* @returns {Uint8Array} | ||
*/ | ||
export function acir_write_bytes(acir: any): Uint8Array; | ||
/** | ||
* @returns {any} | ||
*/ | ||
export function build_info(): any; |
@@ -170,4 +170,33 @@ let imports = {}; | ||
/** | ||
* @param {Uint8Array} bytes | ||
* @returns {any} | ||
*/ | ||
module.exports.acir_read_bytes = function(bytes) { | ||
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_export_0); | ||
const len0 = WASM_VECTOR_LEN; | ||
const ret = wasm.acir_read_bytes(ptr0, len0); | ||
return takeObject(ret); | ||
}; | ||
/** | ||
* @param {any} acir | ||
* @returns {Uint8Array} | ||
*/ | ||
module.exports.acir_write_bytes = function(acir) { | ||
try { | ||
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); | ||
wasm.acir_write_bytes(retptr, addHeapObject(acir)); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
var v0 = getArrayU8FromWasm0(r0, r1).slice(); | ||
wasm.__wbindgen_export_2(r0, r1 * 1); | ||
return v0; | ||
} finally { | ||
wasm.__wbindgen_add_to_stack_pointer(16); | ||
} | ||
}; | ||
/** | ||
* @returns {any} | ||
*/ | ||
module.exports.build_info = function() { | ||
@@ -186,2 +215,6 @@ const ret = wasm.build_info(); | ||
module.exports.__wbindgen_object_drop_ref = function(arg0) { | ||
takeObject(arg0); | ||
}; | ||
module.exports.__wbindgen_is_undefined = function(arg0) { | ||
@@ -192,7 +225,3 @@ const ret = getObject(arg0) === undefined; | ||
module.exports.__wbindgen_object_drop_ref = function(arg0) { | ||
takeObject(arg0); | ||
}; | ||
module.exports.__wbg_readfile_141fe7d2c0f1edde = function() { return handleError(function (arg0, arg1, arg2) { | ||
module.exports.__wbg_readfile_1ed72752a157b319 = function() { return handleError(function (arg0, arg1, arg2) { | ||
const ret = read_file(getStringFromWasm0(arg1, arg2)); | ||
@@ -199,0 +228,0 @@ const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1); |
@@ -6,3 +6,3 @@ { | ||
], | ||
"version": "0.1.1-fd64be5", | ||
"version": "0.2.0-007ab75", | ||
"files": [ | ||
@@ -25,4 +25,4 @@ "nodejs", | ||
"compiler": { | ||
"versionHash": "fd64be55fc905a032d53c9ac7a7f7b71da899c37" | ||
"versionHash": "007ab75abc6581c604791b14ecc5e8e73157e7c8" | ||
} | ||
} |
# Noir Lang WASM JavaScript Package | ||
## Tracks | ||
Noir lang Repository [noir-lang/noir@fd64be5](https://github.com/noir-lang/noir/tree/fd64be55fc905a032d53c9ac7a7f7b71da899c37) | ||
Noir lang Repository [noir-lang/noir@007ab75](https://github.com/noir-lang/noir/tree/007ab75abc6581c604791b14ecc5e8e73157e7c8) |
@@ -7,2 +7,4 @@ /* tslint:disable */ | ||
export function acir_to_bytes(a: number, b: number): void; | ||
export function acir_read_bytes(a: number, b: number): number; | ||
export function acir_write_bytes(a: number, b: number): void; | ||
export function build_info(): number; | ||
@@ -9,0 +11,0 @@ export function __wbindgen_export_0(a: number): number; |
@@ -19,4 +19,14 @@ /* tslint:disable */ | ||
/** | ||
* @param {Uint8Array} bytes | ||
* @returns {any} | ||
*/ | ||
export function acir_read_bytes(bytes: Uint8Array): any; | ||
/** | ||
* @param {any} acir | ||
* @returns {Uint8Array} | ||
*/ | ||
export function acir_write_bytes(acir: any): Uint8Array; | ||
/** | ||
* @returns {any} | ||
*/ | ||
export function build_info(): any; | ||
@@ -31,2 +41,4 @@ | ||
readonly acir_to_bytes: (a: number, b: number) => void; | ||
readonly acir_read_bytes: (a: number, b: number) => number; | ||
readonly acir_write_bytes: (a: number, b: number) => void; | ||
readonly build_info: () => number; | ||
@@ -33,0 +45,0 @@ readonly __wbindgen_export_0: (a: number) => number; |
@@ -168,4 +168,33 @@ import { read_file } from '@noir-lang/noir-source-resolver'; | ||
/** | ||
* @param {Uint8Array} bytes | ||
* @returns {any} | ||
*/ | ||
export function acir_read_bytes(bytes) { | ||
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_export_0); | ||
const len0 = WASM_VECTOR_LEN; | ||
const ret = wasm.acir_read_bytes(ptr0, len0); | ||
return takeObject(ret); | ||
} | ||
/** | ||
* @param {any} acir | ||
* @returns {Uint8Array} | ||
*/ | ||
export function acir_write_bytes(acir) { | ||
try { | ||
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); | ||
wasm.acir_write_bytes(retptr, addHeapObject(acir)); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
var v0 = getArrayU8FromWasm0(r0, r1).slice(); | ||
wasm.__wbindgen_export_2(r0, r1 * 1); | ||
return v0; | ||
} finally { | ||
wasm.__wbindgen_add_to_stack_pointer(16); | ||
} | ||
} | ||
/** | ||
* @returns {any} | ||
*/ | ||
export function build_info() { | ||
@@ -218,2 +247,5 @@ const ret = wasm.build_info(); | ||
imports.wbg = {}; | ||
imports.wbg.__wbindgen_object_drop_ref = function(arg0) { | ||
takeObject(arg0); | ||
}; | ||
imports.wbg.__wbindgen_is_undefined = function(arg0) { | ||
@@ -223,6 +255,3 @@ const ret = getObject(arg0) === undefined; | ||
}; | ||
imports.wbg.__wbindgen_object_drop_ref = function(arg0) { | ||
takeObject(arg0); | ||
}; | ||
imports.wbg.__wbg_readfile_141fe7d2c0f1edde = function() { return handleError(function (arg0, arg1, arg2) { | ||
imports.wbg.__wbg_readfile_1ed72752a157b319 = function() { return handleError(function (arg0, arg1, arg2) { | ||
const ret = read_file(getStringFromWasm0(arg1, arg2)); | ||
@@ -229,0 +258,0 @@ const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
6217280
646