Struct optee_utee::object::ObjectInfo[][src]

pub struct ObjectInfo { /* fields omitted */ }
Expand description

Represent the characteristics of an object. This info can be returned by TransientObject function info or PersistentObject function info.

Implementations

Return an ObjectInfo struct based on the raw structrure TEE_ObjectInfo. The raw structure contains following fields:

  1. objectType: The parameter represents one of the TransientObjectType.
  2. objectSize: The current size in bits of the object as determined by its attributes. This will always be less than or equal to maxObjectSize. Set to 0 for uninitialized and data only objects.
  3. maxObjectSize: The maximum objectSize which this object can represent. 3.1) For a PersistentObject, set to objectSize. 3.2) For a TransientObject, set to the parameter maxObjectSize passed to allocate.
  4. objectUsage: A bit vector of UsageFlag.
  5. dataSize: 5.1) For a PersistentObject, set to the current size of the data associated with the object. 5.2) For a TransientObject, always set to 0.
  6. dataPosition: 6.1) For a PersistentObject, set to the current position in the data for this handle. Data positions for different handles on the same object may differ. 6.2) For a TransientObject, set to 0.
  7. handleFlags: A bit vector containing one or more HandleFlag or DataFlag.

Return the dataSize field of the raw structrure TEE_ObjectInfo.

Return the objectSize field of the raw structrure TEE_ObjectInfo.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.