Click or drag to resize

SetSourceBigEndian

Specifies the byte order to be used in high-level access operations, such as InXX and MoveInXX, when reading from the source.

virtual HRESULT SetSourceBigEndian(bool bBigEndian) abstract;
Parameters
bBigEndian

[in] true indicates big endian byte ordering. false indicates little endian byte ordering.

Return Value

Returns S_OK if successful, otherwise a failure HRESULT.

Example

The following example demonstrates use of the SetSourceBigEndian function.

C++
// CoAcme4321.cpp
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;
}
See Also

Other Resources

Download a complete CHM version of this documentation here.