pub fn read_all_if_changed(
        data: &[u8],
        last_counter: usize,
    ) -> Result<Vec<Record>, ProgramError> {
        if RefDB::get_storage_counter(data)? > last_counter {
            RefDB::read_all(data)
        } else {
            Ok(Vec::<Record>::default())
        }
    }
/// Returns all active records in the storage if any of them was updated
Returns all active records in the storage if any of them was updated
Returns all active records in the storage if any of them was updated
pub fn read_all_if_changed(
        data: &[u8],
        last_counter: usize,
    ) -> Result<Vec<Record>, ProgramError> {
        if RefDB::get_storage_counter(data)? > last_counter {
            RefDB::read_all(data)
        } else {
            Ok(Vec::<Record>::default())
        }
    }
pub fn read_all_if_changed ( data : & [ u8 ] , last_counter : usize , ) -> Result < Vec < Record > , ProgramError > { if RefDB :: get_storage_counter ( data ) ? > last_counter { RefDB :: read_all ( data ) } else { Ok ( Vec :: < Record > :: default ( ) ) } }
Returns all active records in the storage if any of them was updated
Returns all active records in the storage if any of them was updated
data
&[u8]
last_counter
usize
data
&[u8]
last_counter
usize