#include <Teuchos_SerializationTraits.hpp>
|
| static Ordinal | fromCountToIndirectBytes (const Ordinal count, const unsigned char buffer[]) |
| | Return the number of bytes for count objects.
|
| |
| static void | serialize (const Ordinal count, const unsigned char buffer[], const Ordinal bytes, char charBuffer[]) |
| | Serialize to an indirect char[] buffer.
|
| |
| static Ordinal | fromIndirectBytesToCount (const Ordinal bytes, const char charBuffer[]) |
| | Return the number of objects for bytes of storage.
|
| |
| static void | deserialize (const Ordinal bytes, const char charBuffer[], const Ordinal count, unsigned char buffer[]) |
| | Deserialize from an indirect char[] buffer.
|
| |
template<typename Ordinal>
class Teuchos::SerializationTraits< Ordinal, unsigned char >
Definition at line 373 of file Teuchos_SerializationTraits.hpp.
◆ fromCountToDirectBytes()
◆ convertToCharPtr() [1/2]
◆ convertToCharPtr() [2/2]
◆ fromDirectBytesToCount()
◆ convertFromCharPtr() [1/2]
◆ convertFromCharPtr() [2/2]
◆ fromCountToIndirectBytes()
| static Ordinal Teuchos::SerializationTraits< Ordinal, unsigned char >::fromCountToIndirectBytes |
( |
const Ordinal | count, |
|
|
const unsigned char | buffer[] ) |
|
inlinestatic |
◆ serialize()
| static void Teuchos::SerializationTraits< Ordinal, unsigned char >::serialize |
( |
const Ordinal | count, |
|
|
const unsigned char | buffer[], |
|
|
const Ordinal | bytes, |
|
|
char | charBuffer[] ) |
|
inlinestatic |
Serialize to an indirect char[] buffer.
- Parameters
-
| count | [in] The number of objects to serialize. |
| buffer | [in] The objects to serialize. |
| bytes | [in] Number of bytes in charBuffer[] |
| charBuffer | [out] Array (length bytes) containing the serialized objects. |
Preconditions:
-
bytes==fromCountToIndirectBytes(count)
Definition at line 217 of file Teuchos_SerializationTraits.hpp.
◆ fromIndirectBytesToCount()
| static Ordinal Teuchos::SerializationTraits< Ordinal, unsigned char >::fromIndirectBytesToCount |
( |
const Ordinal | bytes, |
|
|
const char | charBuffer[] ) |
|
inlinestatic |
◆ deserialize()
| static void Teuchos::SerializationTraits< Ordinal, unsigned char >::deserialize |
( |
const Ordinal | bytes, |
|
|
const char | charBuffer[], |
|
|
const Ordinal | count, |
|
|
unsigned char | buffer[] ) |
|
inlinestatic |
Deserialize from an indirect char[] buffer.
- Parameters
-
| bytes | [in] Number of bytes in charBuffer[] |
| charBuffer | [in] Array (length bytes) containing the serialized objects. |
| count | [in] The number of objects to deserialize. |
| buffer | [out] The deserialized objects. |
Preconditions:
-
count==fromIndirectBytesToCount(bytes)
Definition at line 249 of file Teuchos_SerializationTraits.hpp.
◆ supportsDirectSerialization
Whether the type T supports direct serialization.
See the class documentation for definitions of "direct" and "indirect" serialization.
Definition at line 140 of file Teuchos_SerializationTraits.hpp.
The documentation for this class was generated from the following file: