A class containing various advanced options for the ExtendableBinaryInput archive.
More...
#include </home/breiker/code/git/cereal_fwd_github/include/cereal/archives/extendable_binary.hpp>
|
| enum | Endianness : std::uint8_t { big,
little
} |
| | Represents desired endianness.
|
| |
|
|
static Options | Default () |
| | Default options, preserve system endianness.
|
| |
|
|
class | ExtendableBinaryInputArchive |
| |
A class containing various advanced options for the ExtendableBinaryInput archive.
◆ Options()
| cereal::ExtendableBinaryInputArchive::Options::Options |
( |
Endianness |
inputEndian_ = getEndianness(), |
|
|
std::size_t |
maxSharedBufferSize_ = std::numeric_limits<std::size_t>::max(), |
|
|
bool |
ignoreUnknownPolymorphicTypes_ = true |
|
) |
| |
|
inlineexplicit |
Specify specific options for the ExtendableBinaryInputArchive.
- Parameters
-
| inputEndian_ | The desired endianness of loaded (input) data |
| maxSharedBufferSize_ | Maximum data size in bytes saved for shared pointers for which data was not loaded explicitly and may be needed to be available if same pointer is needed to be loaded later in stream. |
| ignoreUnknownPolymorphicTypes_ | Don't throw exception when pointer to object of unknown polymorphic type is loaded. Pointer is set to nullptr in this case. |
◆ ignoreUnknownPolymorphicTypes()
| Options& cereal::ExtendableBinaryInputArchive::Options::ignoreUnknownPolymorphicTypes |
( |
bool |
ignore_ | ) |
|
|
inline |
Don't throw exception when pointer to object of unknown polymorphic type is loaded.
Pointer is set to nullptr in this case.
- Parameters
-
◆ maxSharedBufferSize()
| Options& cereal::ExtendableBinaryInputArchive::Options::maxSharedBufferSize |
( |
std::size_t |
maxSharedBufferSize_ | ) |
|
|
inline |
Set max buffer size for shared data.
- Parameters
-
| maxSharedBufferSize_ | Maximum data size in bytes saved for shared pointers for which data was not loaded explicitly and may be needed to be available if same pointer is needed to be loaded later in stream. |
The documentation for this class was generated from the following file: