pub fn read(data: &[u8], name: &ArrayString64) -> Result<Option<Record>, ProgramError> {
        if let Some(index) = RefDB::find_index(data, name)? {
            RefDB::read_at(data, index)
        } else {
            Ok(None)
        }
    }
/// Returns the record associated with the given name
Returns the record associated with the given name
Returns the record associated with the given name
pub fn read(data: &[u8], name: &ArrayString64) -> Result<Option<Record>, ProgramError> {
        if let Some(index) = RefDB::find_index(data, name)? {
            RefDB::read_at(data, index)
        } else {
            Ok(None)
        }
    }
pub fn read ( data : & [ u8 ] , name : & ArrayString64 ) -> Result < Option < Record > , ProgramError > { if let Some ( index ) = RefDB :: find_index ( data , name ) ? { RefDB :: read_at ( data , index ) } else { Ok ( None ) } }
Returns the record associated with the given name
Returns the record associated with the given name
data
&[u8]
name
&ArrayString64
data
&[u8]
name
&ArrayString64