liftof_rb::api

Function get_buff_size

Source
pub fn get_buff_size(which: &RamBuffer) -> Result<usize, RegisterError>
Expand description

Get the blob buffer size from occupancy register

Read out the occupancy register and compare to a previously recoreded value. Everything is u32 (the register can’t hold more)

The size of the buffer can only be defined compared to a start value. If the value rools over, the size then does not make no longer sense and needs to be updated.

#Arguments: