Click or drag to resize

GetSourceBigEndian

Gets the byte order currently in use in high-level access operations, such as InXX and MoveInXX, when reading from the source.

virtual HRESULT GetSourceBigEndian(bool* pbBigEndian) abstract;
Parameters
pbBigEndian

[out] 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 GetSourceBigEndian function.

C++
// CoAcme4321.cpp
STDMETHODIMP Acme4321::IAcme4321_Read()
{
  // Source uses big endian byte ordering
  bool bBigEndian.
  hr = io.Memory.GetSourceBigEndian(&bBigEndian);

  return hr;
}
See Also

Other Resources

Download a complete CHM version of this documentation here.