SetByteOrder( ) method
- Last Updated: January 18, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
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
|
- byte-order
- Byte order can be specified as
PROGRESS.IO.ByteOrder:LittleEndian,PROGRESS.IO.ByteOrder:BigEndian, orPROGRESS.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 theSetByteOrder( )method.