![]() ![]() ![]()
|
SophiaFramework UNIVERSE 5.3 |

SFXBinaryStream is the base class of the binary stream to read from / write onto the binary sequence.
To read from / write onto the binary sequence actually, use the following classes derived from this class separately depending on the read / write type.
Table 191. Derived Classes of SFXBinaryStream [Binary Stream]
| Data Type | For Reading | For Writing |
|---|---|---|
| Arbitrary Type | SFXBinaryStreamReader | SFXBinaryStreamWriter |
![]() |
Note |
|---|---|
| Other than string, data of the arbitrary type such as integer, floating point, or boolean can be read from or written into the binary stream. | |
SFXBinaryStreamReader | SFXBinaryStreamWriter | Binary Stream
| Constructor/Destructor |
|---|
|
SFXBinaryStream( Void ) Constructor of the SFXBinaryStream class.
|
| Public Functions | |
|---|---|
| EndianEnum |
GetEndian( Void ) Get the endian of this stream.
|
| Void |
SetEndian(
EndianEnum param
) Set the endian of this stream.
|
| Void |
big(
SFXBinaryStreamRef stream
) Manipulator that sets the endian of this stream to Big-Endian.
|
| Void |
little(
SFXBinaryStreamRef stream
) Manipulator that sets the endian of this stream to Little-Endian.
|
| Types |
|---|
|
EndianEnum Constants that represent the endian of this stream.
|
|
ManipulatorSPP Type that represents the manipulator of the SFXBinaryStream class.
|
[ protected, explicit ] SFXBinaryStream(Void);
[ public, const ] EndianEnum GetEndian(Void);
This function gets the endian of this stream.
SFXBinaryStream::EndianEnum | SFXBinaryStream::SetEndian | SFXBinaryStream::big | SFXBinaryStream::little
[ public ] Void SetEndian( EndianEnum param // endian );
This function sets the endian of this stream to SFXBinaryStream::ENDIAN_LITTLE for Little-Endian or SFXBinaryStream::ENDIAN_BIG for Big-Endian.
![]() |
Tip |
|---|---|
| The endian of this stream can be also set by using the SFXBinaryStream::big or SFXBinaryStream::little manipulator. | |
SFXBinaryStream::EndianEnum | SFXBinaryStream::GetEndian | SFXBinaryStream::big | SFXBinaryStream::little
[ public, friend ] Void big( SFXBinaryStreamRef stream // stream );
This function is the manipulator that sets the endian of this stream to Big-Endian.
![]() |
Tip |
|---|---|
| The endian of this stream can be set also by using the SFXBinaryStream::SetEndian function. | |
SFXBinaryStream::little | SFXBinaryStream::SetEndian | SFXBinaryStream::GetEndian | SFXBinaryStream::ManipulatorSPP
[ public, friend ] Void little( SFXBinaryStreamRef stream );
This function is the manipulator that sets the endian of this stream to Little-Endian.
![]() |
Tip |
|---|---|
| The endian of this stream can be set also by using the SFXBinaryStream::SetEndian function. | |
SFXBinaryStream::big | SFXBinaryStream::SetEndian | SFXBinaryStream::GetEndian | SFXBinaryStream::ManipulatorSPP
enum EndianEnum {
ENDIAN_LITTLE = 0, // Little-Endian
ENDIAN_BIG // Big-Endian
};
ENDIAN_LITTLE and ENDIAN_BIG mean Little-Endian and Big-Endian respectively.
SFXBinaryStream::SetEndian | SFXBinaryStream::GetEndian | SFXBinaryStream::big | SFXBinaryStream::little
typedef Void(* SFXBinaryStream::ManipulatorSPP)(SFXBinaryStreamRef stream)
|
Copyright(c) 2002 - 2012 Sophia Cradle Incorporated All Rights Reserved. |
![]() ![]() ![]()
|