MCPcopy Create free account
hub / github.com/argumentcomputer/ix / decode_io_buffer_map

Function decode_io_buffer_map

crates/ffi/src/aiur/protocol.rs:749–766  ·  view source on GitHub ↗
(
  arr: &LeanArray<LeanBorrowed<'_>>,
)

Source from the content-addressed store, hash-verified

747// for humans; f64's 52-bit mantissa is exact far past any real budget.
748#[allow(clippy::cast_precision_loss)]
749#[unsafe(no_mangle)]
750extern "C" fn rs_aiur_toplevel_shard_check_batch(
751 toplevel_obj: LeanAiurToplevel<LeanBorrowed<'_>>,
752 fun_idx: LeanNat<LeanBorrowed<'_>>,
753 env_handle: LeanExternal<
754 ixvm_codegen::env_handle::EnvHandle,
755 LeanBorrowed<'_>,
756 >,
757 shards_blob: LeanByteArray<LeanBorrowed<'_>>,
758 use_bytecode: bool,
759 jobs: LeanNat<LeanBorrowed<'_>>,
760 commitment_parameters: LeanAiurCommitmentParameters<LeanBorrowed<'_>>,
761 fri_parameters: LeanAiurFriParameters<LeanBorrowed<'_>>,
762 max_ram_bytes: LeanNat<LeanBorrowed<'_>>,
763) -> LeanExcept<LeanOwned> {
764 use rayon::prelude::*;
765 let toplevel = decode_toplevel(&toplevel_obj);
766 let fun_idx = lean_unbox_nat_as_usize(fun_idx.inner());
767 let jobs = lean_unbox_nat_as_usize(jobs.inner());
768 let max_ram_bytes = lean_unbox_nat_as_usize(max_ram_bytes.inner());
769 let shards = match decode_addr_lists(shards_blob.as_bytes()) {

Callers 1

decode_io_bufferFunction · 0.85

Calls 7

lean_unbox_gFunction · 0.85
lean_unbox_nat_as_usizeFunction · 0.85
as_arrayMethod · 0.80
lenMethod · 0.45
iterMethod · 0.45
getMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected