#[cfg(target_arch = "wasm32")]
#[link(wasm_import_module = "co_v1")]
extern "C" {
pub fn storage_block_get(cid: *const u8, cid_size: u32, buffer: *mut u8, buffer_size: u32) -> u32;
pub fn storage_block_set(cid: *const u8, cid_size: u32, buffer: *const u8, buffer_size: u32) -> u32;
}
#[cfg(not(target_arch = "wasm32"))]
pub unsafe extern "C" fn storage_block_get(
_cid: *const u8,
_cid_size: u32,
_buffer: *mut u8,
_buffer_size: u32,
) -> u32 {
panic!("only available for target_arch = \"wasm32\"");
}
#[cfg(not(target_arch = "wasm32"))]
pub unsafe extern "C" fn storage_block_set(
_cid: *const u8,
_cid_size: u32,
_buffer: *const u8,
_buffer_size: u32,
) -> u32 {
panic!("only available for target_arch = \"wasm32\"");
}