diff --git a/include/bitsery/deserializer.h b/include/bitsery/deserializer.h index e58310d..3633ef4 100644 --- a/include/bitsery/deserializer.h +++ b/include/bitsery/deserializer.h @@ -369,6 +369,9 @@ namespace bitsery { template void value8b(T &&v) { value<8>(std::forward(v)); } + template + void value16b(T &&v) { value<16>(std::forward(v)); } + template void ext1b(T &v, Ext &&extension) { ext<1, T, Ext>(v, std::forward(extension)); } @@ -381,6 +384,9 @@ namespace bitsery { template void ext8b(T &v, Ext &&extension) { ext<8, T, Ext>(v, std::forward(extension)); } + template + void ext16b(T &v, Ext &&extension) { ext<16, T, Ext>(v, std::forward(extension)); } + template void text1b(T &str, size_t maxSize) { text<1>(str, maxSize); } @@ -411,6 +417,9 @@ namespace bitsery { template void container8b(T &&obj, size_t maxSize) { container<8>(std::forward(obj), maxSize); } + template + void container16b(T &&obj, size_t maxSize) { container<16>(std::forward(obj), maxSize); } + template void container1b(T &&obj) { container<1>(std::forward(obj)); } @@ -423,6 +432,9 @@ namespace bitsery { template void container8b(T &&obj) { container<8>(std::forward(obj)); } + template + void container16b(T &&obj) { container<16>(std::forward(obj)); } + private: void readSize(size_t& size, size_t maxSize) { diff --git a/include/bitsery/details/serialization_common.h b/include/bitsery/details/serialization_common.h index 6d5a441..17503c6 100644 --- a/include/bitsery/details/serialization_common.h +++ b/include/bitsery/details/serialization_common.h @@ -75,6 +75,8 @@ namespace bitsery { struct FtorExtValue4b: FtorExtValue<4, Ext> {}; template struct FtorExtValue8b: FtorExtValue<8, Ext> {}; + template + struct FtorExtValue16b: FtorExtValue<16, Ext> {}; template struct FtorExtObject : public Ext { diff --git a/include/bitsery/serializer.h b/include/bitsery/serializer.h index 4429ae6..9b7e7e1 100644 --- a/include/bitsery/serializer.h +++ b/include/bitsery/serializer.h @@ -367,6 +367,9 @@ namespace bitsery { template void value8b(T &&v) { value<8>(std::forward(v)); } + template + void value16b(T &&v) { value<16>(std::forward(v)); } + template void ext1b(const T &v, Ext &&extension) { ext<1, T, Ext>(v, std::forward(extension)); } @@ -379,6 +382,9 @@ namespace bitsery { template void ext8b(const T &v, Ext &&extension) { ext<8, T, Ext>(v, std::forward(extension)); } + template + void ext16b(const T &v, Ext &&extension) { ext<16, T, Ext>(v, std::forward(extension)); } + template void text1b(const T &str, size_t maxSize) { text<1>(str, maxSize); } @@ -409,6 +415,9 @@ namespace bitsery { template void container8b(T &&obj, size_t maxSize) { container<8>(std::forward(obj), maxSize); } + template + void container16b(T &&obj, size_t maxSize) { container<16>(std::forward(obj), maxSize); } + template void container1b(T &&obj) { container<1>(std::forward(obj)); } @@ -421,6 +430,9 @@ namespace bitsery { template void container8b(T &&obj) { container<8>(std::forward(obj)); } + template + void container16b(T &&obj) { container<16>(std::forward(obj)); } + private: