pub fn write_object<T: TpmBuild>(obj: &T) -> Result<Vec<u8>, TpmError>
Serialize a type implementing TpmBuild type into Vec<u8>.
TpmBuild
Vec<u8>
Returns a TpmError if the object cannot be serialized into the buffer.
TpmError