From 4dc4c78d3653a5db16a6f512a0089d164067c208 Mon Sep 17 00:00:00 2001 From: Theodore Tsirpanis Date: Fri, 18 Oct 2024 16:23:00 +0300 Subject: [PATCH] Fix errors. We were missing a header, and we can pass a `kj::ArrayPtr` which does not require being null-terminated. --- tiledb/sm/serialization/capnp_utils.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tiledb/sm/serialization/capnp_utils.h b/tiledb/sm/serialization/capnp_utils.h index 567f910770f..da057ffbda4 100644 --- a/tiledb/sm/serialization/capnp_utils.h +++ b/tiledb/sm/serialization/capnp_utils.h @@ -35,6 +35,8 @@ #ifdef TILEDB_SERIALIZATION +#include + #include "tiledb-rest.capnp.h" #include "tiledb/common/heap_memory.h" @@ -708,7 +710,7 @@ void decode_json_message( buffer = buffer.first(buffer.size() - 1); } - json.decode(kj::StringPtr(buffer.data(), buffer.size()), message_builder); + json.decode(kj::ArrayPtr(buffer.data(), buffer.size()), message_builder); } } // namespace utils