Skip to content

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;

pbBigEndian

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

Returns S_OK if successful, otherwise a failure HRESULT.

The following example demonstrates use of the GetSourceBigEndian function.

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