Fix bytestring being serialized as vector of flag enums (#403)

This commit is contained in:
George Evmenov
2025-04-10 22:57:03 +08:00
committed by GitHub
parent d73d98f1c8
commit 15742a8739
7 changed files with 17 additions and 9 deletions
+1 -1
View File
@@ -99,7 +99,7 @@ class Writer {
msgpack_pack_str_body(pk_, _var.c_str(), _var.size());
} else if constexpr (std::is_same<Type, rfl::Bytestring>()) {
msgpack_pack_bin(pk_, _var.size());
msgpack_pack_bin_body(pk_, _var.c_str(), _var.size());
msgpack_pack_bin_body(pk_, _var.data(), _var.size());
} else if constexpr (std::is_same<Type, bool>()) {
if (_var) {
msgpack_pack_true(pk_);