write_object

Function write_object 

Source
pub fn write_object<T: TpmBuild>(obj: &T) -> Result<Vec<u8>, TpmError>
Expand description

Serialize a type implementing TpmBuild type into Vec<u8>.

ยงErrors

Returns a TpmError if the object cannot be serialized into the buffer.