Antkeeper
0.0.1
|
Provides access to a serialization state. More...
#include <serialize-context.hpp>
Public Member Functions | |
virtual const std::filesystem::path & | path () const noexcept=0 |
Returns the path associated with this serialize context. More... | |
virtual bool | error () const noexcept=0 |
Returns true if an error occured during a write operation or initialization, false otherwise. More... | |
virtual std::size_t | write8 (const std::byte *data, std::size_t count) noexcept(false)=0 |
Writes 8-bit (byte) data. More... | |
virtual std::size_t | write16_le (const std::byte *data, std::size_t count) noexcept(false)=0 |
Writes 16-bit (word) little-endian data. More... | |
virtual std::size_t | write16_be (const std::byte *data, std::size_t count) noexcept(false)=0 |
Writes 16-bit (word) big-endian data. More... | |
template<std::endian Endian> | |
std::size_t | write16 (const std::byte *data, std::size_t count) noexcept(false) |
Writes 16-bit (word) data. More... | |
virtual std::size_t | write32_le (const std::byte *data, std::size_t count) noexcept(false)=0 |
Writes 32-bit (double word) little-endian data. More... | |
virtual std::size_t | write32_be (const std::byte *data, std::size_t count) noexcept(false)=0 |
Writes 32-bit (double word) big-endian data. More... | |
template<std::endian Endian> | |
std::size_t | write32 (const std::byte *data, std::size_t count) noexcept(false) |
Writes 32-bit (double word) data. More... | |
virtual std::size_t | write64_le (const std::byte *data, std::size_t count) noexcept(false)=0 |
Writes 64-bit (quad word) little-endian data. More... | |
virtual std::size_t | write64_be (const std::byte *data, std::size_t count) noexcept(false)=0 |
Writes 64-bit (quad word) big-endian data. More... | |
template<std::endian Endian> | |
std::size_t | write64 (const std::byte *data, std::size_t count) noexcept(false) |
Writes 64-bit (quad word) data. More... | |
Provides access to a serialization state.
Definition at line 30 of file serialize-context.hpp.
|
pure virtualnoexcept |
Returns true
if an error occured during a write operation or initialization, false
otherwise.
Implemented in physfs_serialize_context.
|
pure virtualnoexcept |
Returns the path associated with this serialize context.
Implemented in physfs_serialize_context.
|
inlinenoexcept |
Writes 16-bit (word) data.
Endian | Endianness of the write operation. |
data | Pointer to data source. |
count | Number of words to write. |
serialize_error | Write error. |
Definition at line 92 of file serialize-context.hpp.
|
pure virtualnoexcept |
Writes 16-bit (word) big-endian data.
data | Pointer to data source. |
count | Number of words to write. |
serialize_error | Write error. |
Implemented in physfs_serialize_context.
|
pure virtualnoexcept |
Writes 16-bit (word) little-endian data.
data | Pointer to data source. |
count | Number of words to write. |
serialize_error | Write error. |
Implemented in physfs_serialize_context.
|
inlinenoexcept |
Writes 32-bit (double word) data.
Endian | Endianness of the write operation. |
data | Pointer to data source. |
count | Number of double words to write. |
serialize_error | Write error. |
Definition at line 141 of file serialize-context.hpp.
|
pure virtualnoexcept |
Writes 32-bit (double word) big-endian data.
data | Pointer to data source. |
count | Number of double words to write. |
serialize_error | Write error. |
Implemented in physfs_serialize_context.
|
pure virtualnoexcept |
Writes 32-bit (double word) little-endian data.
data | Pointer to data source. |
count | Number of double words to write. |
serialize_error | Write error. |
Implemented in physfs_serialize_context.
|
inlinenoexcept |
Writes 64-bit (quad word) data.
Endian | Endianness of the write operation. |
data | Pointer to data source. |
count | Number of quad words to write. |
serialize_error | Write error. |
Definition at line 190 of file serialize-context.hpp.
|
pure virtualnoexcept |
Writes 64-bit (quad word) big-endian data.
data | Pointer to data source. |
count | Number of quad words to write. |
serialize_error | Write error. |
Implemented in physfs_serialize_context.
|
pure virtualnoexcept |
Writes 64-bit (quad word) little-endian data.
data | Pointer to data source. |
count | Number of quad words to write. |
serialize_error | Write error. |
Implemented in physfs_serialize_context.
|
pure virtualnoexcept |
Writes 8-bit (byte) data.
data | Pointer to data source. |
count | Number of bytes to write. |
serialize_error | Write error. |
Implemented in physfs_serialize_context.