pub(crate) fn get_object_bytes(
    ctx: FunctionEnvMut<'_, Env>,
    ptr: WasmPtr<u8>,
    idx: u32
) -> i64
Expand description

Retrieve an object from the object store specified by the index idx. The object’s data is written to ptr.

Returns SUCCESS on success and an error code otherwise.

Permissions: deploy, metadata, exec