From 722b1c8db6e4d1db786e424b93d638208f3769b5 Mon Sep 17 00:00:00 2001 From: Matthew Ellis Date: Fri, 1 Nov 2024 16:34:30 -0700 Subject: [PATCH] Update example --- examples/serial/cpp/smartredis_put_get_bytes.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/examples/serial/cpp/smartredis_put_get_bytes.cpp b/examples/serial/cpp/smartredis_put_get_bytes.cpp index fbe25133..8679120c 100644 --- a/examples/serial/cpp/smartredis_put_get_bytes.cpp +++ b/examples/serial/cpp/smartredis_put_get_bytes.cpp @@ -47,7 +47,14 @@ int main(int argc, char* argv[]) { std::vector output_bytes(n_bytes, 0); - client.unpack_bytes(key, output_bytes.data(), n_bytes); + size_t received_bytes = 0; + client.unpack_bytes(key, output_bytes.data(), n_bytes, + received_bytes); + + if (received_bytes != n_bytes) { + std::cout<<"Output byte size "<