fn add_string_entry(&mut self, key: FwCfgEntryType, value: &str) -> Result<()> {
        let mut bytes = value.as_bytes().to_vec();
        bytes.push(0_u8);
        self.fw_cfg_common()
            .add_entry(key, None, None, bytes, false)
    }
/// Add an entry to FwCfg device, with String content.
///
/// # Arguments
///
/// * `key` - FwCfgEntryType
/// * `value` - string data entry to be added
Add an entry to FwCfg device, with String content.
Add an entry to FwCfg device with String content .
fn add_string_entry(&mut self, key: FwCfgEntryType, value: &str) -> Result<()> {
        let mut bytes = value.as_bytes().to_vec();
        bytes.push(0_u8);
        self.fw_cfg_common()
            .add_entry(key, None, None, bytes, false)
    }
fn add_string_entry ( & mut self , key : FwCfgEntryType , value : & str ) -> Result < ( ) > { let mut bytes = value . as_bytes ( ) . to_vec ( ) ; bytes . push ( 0_u8 ) ; self . fw_cfg_common ( ) . add_entry ( key , None , None , bytes , false ) }
Add an entry to FwCfg device, with String content.
Add an entry to FwCfg device with String content .
&mut self
key
FwCfgEntryType
value
&str
&mut self
key
FwCfgEntryType
value
&str