Sets the ByteOrder property to an indicator
that designates the byte-order of MemoryOutputStream object’s Data property. By default, the byte order for the Data property is the HostByteOrder member of
Progress.IO.ByteOrder.
Note: This method is equivalent to the SET-BYTE-ORDER
statement, which applies to MEMPTR variables but not to MemoryOutputStream objects.
Return type: VOID
Access: PUBLIC
Applies to:Progress.IO.MemoryOutputStream class
Syntax
SetByteOrder(INPUT byte-order AS Progress.IO.ByteOrder)
|
- byte-order
- Byte order can be specified as PROGRESS.IO.ByteOrder:LittleEndian, PROGRESS.IO.ByteOrder:BigEndian, or PROGRESS.IO.ByteOrder:HostByteOrder.
Notes
- The SetByteOrder( ) method does not affect data
currently in the stream. It only has an effect on data written by subsequent calls to one
of a MemoryOutputStream's Write methods.
- The Clear( )
method does not reset the stream's byte-order if the byte-order was changed by the
SetByteOrder( ) method.