Trait near_vm_logic::ValuePtr
source · pub trait ValuePtr {
// Required methods
fn len(&self) -> u32;
fn deref(&self) -> Result<Vec<u8>, VMLogicError>;
}
Expand description
Logical pointer to a value in storage. Allows getting value length before getting the value itself. This is needed so that runtime can charge gas before accessing a potentially large value.