[in] true indicates big endian byte ordering. false indicates little endian byte ordering.
SetSourceBigEndian
Specifies the byte order to be used in high-level access operations, such as InXX and MoveInXX, when reading from the source.
Syntax
Section titled “Syntax”virtual HRESULT SetSourceBigEndian(bool bBigEndian) abstract;Parameters
Section titled “Parameters”bBigEndian
Return value
Section titled “Return value”Returns S_OK if successful, otherwise a failure HRESULT.
Example
Section titled “Example”The following example demonstrates use of the SetSourceBigEndian function.
STDMETHODIMP Acme4321::IAcme4321_Read(SAFEARRAY** ppsaData){ // Source uses big endian byte ordering hr = io.SetSourceBigEndian(true);
hr = io.Memory.MoveIn16(VisaA16Space, 0x10, ppsaData);
return hr;}