Click or drag to resize

GetInstrumentBigEndian

Gets a value indicating whether the device returns binary data in big endian or little endian format.

virtual bool GetInstrumentBigEndian() const abstract;
Return Value

Returns true if the device uses big endian byte ordering or false if the device uses little endian byte ordering.

Remarks

This function returns the current setting for the device byte ordering. By default, the byte order is big endian. The setting can be controlled via the SetInstrumentBigEndian function.

Example

The following example demonstrates use of the GetInstrumentBigEndian function.

C++
// CoAcme4321.cpp
HRESULT Acme4321::OnFinalInitialize()
{
  HRESULT hr = S_OK;

  bool bBigEndian = io.GetInstrumentBigEndian();

  return hr;
}
See Also

Other Resources

Download a complete CHM version of this documentation here.