#include <OdPlatformStreamer.h>
|
| static OdInt8 | rdInt8 (OdStreamBuf &streamBuf) |
| |
| static OdUInt8 | rdUInt8 (OdStreamBuf &streamBuf) |
| |
| static OdInt16 | rdInt16 (OdStreamBuf &streamBuf) |
| |
| static OdUInt16 | rdUInt16 (OdStreamBuf &streamBuf) |
| |
| static OdInt32 | rdInt32 (OdStreamBuf &streamBuf) |
| |
| static OdUInt32 | rdUInt32 (OdStreamBuf &streamBuf) |
| |
| static OdInt64 | rdInt64 (OdStreamBuf &streamBuf) |
| |
| static OdUInt64 | rdUInt64 (OdStreamBuf &streamBuf) |
| |
| static float | rdFloat (OdStreamBuf &streamBuf) |
| |
| static double | rdDouble (OdStreamBuf &streamBuf) |
| |
| static void | rd2Doubles (OdStreamBuf &streamBuf, void *doubles) |
| |
| static void | rd3Doubles (OdStreamBuf &streamBuf, void *doubles) |
| |
| static void | rdDoubles (OdStreamBuf &streamBuf, int numDoubles, void *doubles) |
| |
| static void | wrInt8 (OdStreamBuf &streamBuf, OdInt8 value) |
| |
| static void | wrUInt8 (OdStreamBuf &streamBuf, OdUInt8 value) |
| |
| static void | wrInt16 (OdStreamBuf &streamBuf, OdInt16 value) |
| |
| static void | wrUInt16 (OdStreamBuf &streamBuf, OdUInt16 value) |
| |
| static void | wrInt32 (OdStreamBuf &streamBuf, OdInt32 value) |
| |
| static void | wrUInt32 (OdStreamBuf &streamBuf, OdUInt32 value) |
| |
| static void | wrInt64 (OdStreamBuf &streamBuf, OdInt64 value) |
| |
| static void | wrUInt64 (OdStreamBuf &streamBuf, OdUInt64 value) |
| |
| static void | wrFloat (OdStreamBuf &streamBuf, float value) |
| |
| static void | wrDouble (OdStreamBuf &streamBuf, double value) |
| |
| static void | wr2Doubles (OdStreamBuf &streamBuf, const void *doubles) |
| |
| static void | wr3Doubles (OdStreamBuf &streamBuf, const void *doubles) |
| |
| static void | wrDoubles (OdStreamBuf &streamBuf, int numDoubles, const void *doubles) |
| |
| static OdString | getUnicodeStrFromBuffer (const OdUInt8 *&buffer, OdInt32 size) |
| |
| static void | putUnicodeStrToBuffer (const OdString &val, OdUInt8 *&buffer) |
| |
| static void | wrString (OdStreamBuf &streamBuf, const OdString &val) |
| |
| static OdString | rdString (OdStreamBuf &streamBuf) |
| |
This class implements platform dependent stream I/O for various data types. <group Other_Classes>
Definition at line 36 of file OdPlatformStreamer.h.
◆ getUnicodeStrFromBuffer()
Extracts a Unicode string from buffer, and returns it as an OdString.
- Parameters
-
| buffer | [in/out] Buffer pointer to read the Unicode string from. |
| size | [in] Length of the Unicode string in characters (assumes 2 byte characters in buffer stored in little endian format), or -1 if the string is null terminated. |
Definition at line 378 of file OdPlatformStreamer.h.
◆ putUnicodeStrToBuffer()
Writes a Unicode string to the passed in buffer, in little endian format, using 2 bytes per character. The trailing null character is NOT written.
- Parameters
-
| val | [in] Unicode string to be written. |
| buffer | [in] Char buffer to which will receive the Unicode data. |
Definition at line 421 of file OdPlatformStreamer.h.
◆ rd2Doubles()
Reads two doubles from the specified StreamBuf object.
- Parameters
-
| streamBuf | [in] StreamBuf object from which the data are to be read. |
| doubles | [out] Array of doubles to receive the data. |
Definition at line 305 of file OdPlatformStreamer.h.
◆ rd3Doubles()
Reads three doubles from the specified StreamBuf object.
- Parameters
-
| streamBuf | [in] StreamBuf object from which the data are to be read. |
| doubles | [out] Array of doubles to receive the data. |
Definition at line 312 of file OdPlatformStreamer.h.
◆ rdDouble()
| double OdPlatformStreamer::rdDouble |
( |
OdStreamBuf & | streamBuf | ) |
|
|
inlinestatic |
Reads a double from the specified StreamBuf object.
- Parameters
-
| streamBuf | [in] StreamBuf object from which the data are to be read. |
- Returns
- Read double.
Definition at line 293 of file OdPlatformStreamer.h.
◆ rdDoubles()
Reads the specified number of doubles from the specified StreamBuf object.
- Parameters
-
| streamBuf | [in] StreamBuf object from which the data are to be read. |
| doubles | [out] Array of doubles to receive the data. |
| numDoubles | [in] Number of doubles. |
Definition at line 320 of file OdPlatformStreamer.h.
◆ rdFloat()
| float OdPlatformStreamer::rdFloat |
( |
OdStreamBuf & | streamBuf | ) |
|
|
inlinestatic |
Reads a 32-bit floating point number from the specified StreamBuf object.
- Parameters
-
| streamBuf | [in] StreamBuf object from which the data are to be read. |
- Returns
- Read 32-bit floating point number.
Definition at line 286 of file OdPlatformStreamer.h.
◆ rdInt16()
Reads a 16-bit integer from the specified StreamBuf object.
- Parameters
-
| streamBuf | [in] StreamBuf object from which the data are to be read. |
- Returns
- Read 16-bit integer.
Definition at line 244 of file OdPlatformStreamer.h.
◆ rdInt32()
Reads a 32-bit integer from the specified StreamBuf object.
- Parameters
-
| streamBuf | [in] StreamBuf object from which the data are to be read. |
- Returns
- Read 32-bit integer.
Definition at line 258 of file OdPlatformStreamer.h.
◆ rdInt64()
Reads a 64-bit integer from the specified StreamBuf object.
- Parameters
-
| streamBuf | [in] StreamBuf object from which the data are to be read. |
- Returns
- Read 64-bit integer.
Definition at line 272 of file OdPlatformStreamer.h.
◆ rdInt8()
Reads a 8-bit integer from the specified StreamBuf object.
- Parameters
-
| streamBuf | [in] StreamBuf object from which the data are to be read. |
- Returns
- Read 8-bit integer.
Definition at line 236 of file OdPlatformStreamer.h.
◆ rdString()
◆ rdUInt16()
Reads a 16-bit unsigned integer from the specified StreamBuf object.
- Parameters
-
| streamBuf | [in] StreamBuf object from which the data are to be read. |
- Returns
- Read 16-bit unsigned integer.
Definition at line 251 of file OdPlatformStreamer.h.
◆ rdUInt32()
Reads a 32-bit unsigned integer from the specified StreamBuf object.
- Parameters
-
| streamBuf | [in] StreamBuf object from which the data are to be read. |
- Returns
- Read 32-bit unsigned integer.
Definition at line 265 of file OdPlatformStreamer.h.
◆ rdUInt64()
Reads a 64-bit integer from the specified StreamBuf object.
- Parameters
-
| streamBuf | [in] StreamBuf object from which the data are to be read. |
- Returns
- Read 64-bit unsigned integer.
Definition at line 279 of file OdPlatformStreamer.h.
◆ rdUInt8()
Reads a 8-bit unsigned integer from the specified StreamBuf object.
- Parameters
-
| streamBuf | [in] StreamBuf object from which the data are to be read. |
- Returns
- Read 8-bit unsigned integer.
Definition at line 240 of file OdPlatformStreamer.h.
◆ wr2Doubles()
Writes two doubles to the specified StreamBuf object.
- Parameters
-
| streamBuf | [out] StreamBuf object to which the data are to be written. |
| doubles | [in] Array of doubles to be written. |
Definition at line 497 of file OdPlatformStreamer.h.
◆ wr3Doubles()
Writes three doubles to the specified StreamBuf object.
- Parameters
-
| streamBuf | [out] StreamBuf object to which the data are to be written. |
| doubles | [in] Array of doubles to be written. |
Definition at line 502 of file OdPlatformStreamer.h.
◆ wrDouble()
| void OdPlatformStreamer::wrDouble |
( |
OdStreamBuf & | streamBuf, |
|
|
double | value ) |
|
inlinestatic |
Writes a double to the specified StreamBuf object.
- Parameters
-
| streamBuf | [out] StreamBuf object to which the data are to be written. |
| value | [in] Value to be written. |
Definition at line 371 of file OdPlatformStreamer.h.
◆ wrDoubles()
| void OdPlatformStreamer::wrDoubles |
( |
OdStreamBuf & | streamBuf, |
|
|
int | numDoubles, |
|
|
const void * | doubles ) |
|
inlinestatic |
Writes the specified number of doubles to the specified StreamBuf object.
- Parameters
-
| streamBuf | [out] StreamBuf object to which the data are to be written. |
| doubles | [in] Array of doubles to be written. |
| numDoubles | [in] Number of doubles. |
Definition at line 507 of file OdPlatformStreamer.h.
◆ wrFloat()
Writes a 32-bit floating point number to the specified StreamBuf object.
- Parameters
-
| streamBuf | [out] StreamBuf object to which the data are to be written. |
| value | [in] Value to be written. |
Definition at line 366 of file OdPlatformStreamer.h.
◆ wrInt16()
Writes a 16-bit integer to the specified StreamBuf object.
- Parameters
-
| streamBuf | [out] StreamBuf object to which the data are to be written. |
| value | [in] Value to be written. |
Definition at line 336 of file OdPlatformStreamer.h.
◆ wrInt32()
Writes a 32-bit integer to the specified StreamBuf object.
- Parameters
-
| streamBuf | [out] StreamBuf object to which the data are to be written. |
| value | [in] Value to be written. |
Definition at line 346 of file OdPlatformStreamer.h.
◆ wrInt64()
Writes a 64-bit integer to the specified StreamBuf object.
- Parameters
-
| streamBuf | [out] StreamBuf object to which the data are to be written. |
| value | [in] Value to be written. |
Definition at line 356 of file OdPlatformStreamer.h.
◆ wrInt8()
Writes a 8-bit integer to the specified StreamBuf object.
- Parameters
-
| streamBuf | [out] StreamBuf object to which the data are to be written. |
| value | [in] Value to be written. |
Definition at line 328 of file OdPlatformStreamer.h.
◆ wrString()
Same as putUnicodeStrToBuffer, but writes to a stream, prepending string length.
Definition at line 435 of file OdPlatformStreamer.h.
◆ wrUInt16()
Writes a 16-bit unsigned integer to the specified StreamBuf object.
- Parameters
-
| streamBuf | [out] StreamBuf object to which the data are to be written. |
| value | [in] Value to be written. |
Definition at line 341 of file OdPlatformStreamer.h.
◆ wrUInt32()
Writes a 32-bit unsigned integer to the specified StreamBuf object.
- Parameters
-
| streamBuf | [out] StreamBuf object to which the data are to be written. |
| value | [in] Value to be written. |
Definition at line 351 of file OdPlatformStreamer.h.
◆ wrUInt64()
Writes a 64-bit unsigned integer to the specified StreamBuf object.
- Parameters
-
| streamBuf | [out] StreamBuf object to which the data are to be written. |
| value | [in] Value to be written. |
Definition at line 361 of file OdPlatformStreamer.h.
◆ wrUInt8()
Writes a 8-bit unsigned integer to the specified StreamBuf object.
- Parameters
-
| streamBuf | [out] StreamBuf object to which the data are to be written. |
| value | [in] Value to be written. |
Definition at line 332 of file OdPlatformStreamer.h.
The documentation for this class was generated from the following file: