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

Function decode_io_buffer

crates/ffi/src/aiur/protocol.rs:670–677  ·  view source on GitHub ↗
(
  io_data_arr: &LeanArray<LeanBorrowed<'_>>,
  io_map_arr: &LeanArray<LeanBorrowed<'_>>,
)

Source from the content-addressed store, hash-verified

668 fn release(&self, bytes: usize) {
669 *self.reserved.lock().unwrap() -= bytes;
670 self.cv.notify_all();
671 }
672}
673
674/// Per-shard execution-RSS reserve for [`RamGate`], an AFFINE model:
675/// `EXEC_RSS_FIXED_BYTES + EXEC_RSS_PER_OWNED_BYTE x owned bytes`. The
676/// byte basis is the sum of the shard's owned constants' raw
677/// serialized bytes (`Env::get_const_bytes`) — NOT the shard's share
678/// of `.ixe` FILE bytes, which also carry blobs, names, and indices
679/// and run ~2.6x larger. The fixed term is the closure/frontier
680/// ingress every shard pays regardless of owned size; without it a

Callers 4

rs_aiur_toplevel_executeFunction · 0.85
rs_aiur_system_proveFunction · 0.85

Calls 2

decode_io_buffer_dataFunction · 0.85
decode_io_buffer_mapFunction · 0.85

Tested by

no test coverage detected