pub fn ffindex_get_data_by_name<'a>(ffindex_db : &'a FFindexDB, key : String) ->Option<&'a [u8]>
{
    match ffindex_get_entry_by_name(ffindex_db, key)
    {
        Ok(entry) => ffindex_db.ffdata.get(entry.offset .. entry.offset + entry.length),
        Err(_index) => None
    }
}
/// get the data associated with a name
get the data associated with a name
get the data associated with a name
pub fn ffindex_get_data_by_name<'a>(ffindex_db : &'a FFindexDB, key : String) ->Option<&'a [u8]>
{
    match ffindex_get_entry_by_name(ffindex_db, key)
    {
        Ok(entry) => ffindex_db.ffdata.get(entry.offset .. entry.offset + entry.length),
        Err(_index) => None
    }
}
pub fn ffindex_get_data_by_name < ' a > ( ffindex_db : & ' a FFindexDB , key : String ) -> Option < & ' a [ u8 ] > { match ffindex_get_entry_by_name ( ffindex_db , key ) { Ok ( entry ) => ffindex_db . ffdata . get ( entry . offset .. entry . offset + entry . length ) , Err ( _index ) => None } }
get the data associated with a name
get the data associated with a name
ffindex_db
&'a FFindexDB
key
String
ffindex_db
&'a FFindexDB
key
String