/ config_cbor_map_srv_reply_msg.h
config_cbor_map_srv_reply_msg.h
1 #pragma once 2 #include "cbor.h" 3 4 namespace ConfigCborMapSrvReplyMsg { 5 6 constexpr size_t NUM_FIELDS = 5; 7 8 struct Data { 9 uint64_t node_id; 10 uint32_t partition_id; 11 bool success; 12 uint32_t cbor_encoded_map_len; 13 uint8_t *cbor_data; 14 }; 15 16 CborError encode(Data &d, uint8_t *cbor_buffer, size_t size, 17 size_t *encoded_len); 18 19 CborError decode(Data &d, const uint8_t *cbor_buffer, size_t size); 20 21 } // namespace ConfigCborMapSrvReplyMsg