IiopSetByteOrder Function

Action

Specifies the byte order used to pass messages. Depending on this setting, either the byte with the highest or the lowest order is sent first, followed by the remaining bytes in the corresponding order.

Include file

IIOP.bdh

Syntax

IiopSetByteOrder( in nByteOrder : number ): boolean;

Return value

  • true if successful

  • false otherwise

Parameter Description
nByteOrder

Byte order used to pass messages. Possible options are:

  • IIOP_BIG_ENDIAN. Most significant byte is sent first

  • IIOP_LITTLE_ENDIAN. Least significant byte is sent first

Example

dcltrans
  transaction TWebInit
  begin
    // set byte order
    if IiopSetByteOrder(IIOP_BIG_ENDIAN)then
      writeln("byte order set to IIOP_BIG_ENDIAN");
    end;
  end TWebInit;

Output

byte order set to IIOP_BIG_ENDIAN