mirror of
https://github.com/fraillt/bitsery.git
synced 2026-07-23 22:49:20 +00:00
refactoring to work with C++11, and added containerMap extension
This commit is contained in:
@@ -33,13 +33,11 @@ using Buffer = bitsery::DefaultConfig::BufferType;
|
||||
|
||||
struct FixedBufferConfig {
|
||||
static constexpr bitsery::EndiannessType NetworkEndianness = DefaultConfig::NetworkEndianness;
|
||||
static constexpr bool FixedBufferSize = true;
|
||||
using BufferType = std::array<uint8_t, 100>;
|
||||
};
|
||||
|
||||
struct NonFixedBufferConfig {
|
||||
static constexpr bitsery::EndiannessType NetworkEndianness = DefaultConfig::NetworkEndianness;
|
||||
static constexpr bool FixedBufferSize = false;
|
||||
using BufferType = std::vector<uint8_t>;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user