This interface is used to allow the user to determine the byte order of this object. More...
Public Member Functions | |
HRESULT | GetStoredByteOrder ([out] eAAFByteOrder_t *pOrder) |
Returns the "Endian-ness" in which the current object was or will be stored. | |
HRESULT | GetNativeByteOrder ([out] eAAFByteOrder_t *pOrder) |
Returns the native "Endian-ness" of the platform on which this is running. |
This interface is used to allow the user to determine the byte order of this object.
Note that the byte order of the object stored in the AAF file may be different from the native byte order of this machine. Note also that both pieces of information are available here.
Byte order of newly created AAF files is set upon creation of that file. It is set to the byte order of the creating machine.
In addition to the specific error results listed for each method, all methods in this interface may also return one of the following values:
AAFRESULT_NOMEMORY
AAFRESULT_NOT_INITIALIZED
HRESULT IAAFEndian::GetNativeByteOrder | ( | [out] eAAFByteOrder_t * | pOrder | ) |
Returns the native "Endian-ness" of the platform on which this is running.
Succeeds if all of the following are true:
If this method fails nothing is written to *pOrder.
This method will return the following codes. If more than one of the listed errors is in effect, it will return the first one encountered in the order given below:
AAFRESULT_SUCCESS
AAFRESULT_NULL_PARAM
pOrder | [out] Pointer to place where byte order is to be put |
HRESULT IAAFEndian::GetStoredByteOrder | ( | [out] eAAFByteOrder_t * | pOrder | ) |
Returns the "Endian-ness" in which the current object was or will be stored.
If this is a transient object (i.e., one which has not been persisted) then it will return the native byte order of the platform on which this is running.
Succeeds if all of the following are true:
If this method fails nothing is written to *pOrder.
This method will return the following codes. If more than one of the listed errors is in effect, it will return the first one encountered in the order given below:
AAFRESULT_SUCCESS
AAFRESULT_NULL_PARAM
pOrder | [out] Pointer to place where byte order is to be put |