diff --git a/include/zenoh-pico/net/memory.h b/include/zenoh-pico/net/memory.h index 4468dcccb..cf578faf3 100644 --- a/include/zenoh-pico/net/memory.h +++ b/include/zenoh-pico/net/memory.h @@ -28,4 +28,5 @@ void _z_sample_clear(_z_sample_t *sample); void _z_sample_free(_z_sample_t **sample); void _z_sample_copy(_z_sample_t *dst, const _z_sample_t *src); _z_sample_t _z_sample_duplicate(const _z_sample_t *src); + #endif /* ZENOH_PICO_MEMORY_NETAPI_H */ diff --git a/src/net/memory.c b/src/net/memory.c index da64697d8..f0750e5e8 100644 --- a/src/net/memory.c +++ b/src/net/memory.c @@ -53,12 +53,11 @@ void _z_sample_copy(_z_sample_t *dst, const _z_sample_t *src) { dst->keyexpr = _z_keyexpr_duplicate(src->keyexpr); dst->payload = _z_bytes_duplicate(&src->payload); dst->timestamp = _z_timestamp_duplicate(&src->timestamp); - // TODO(sashacmc): + // TODO(sashacmc): should be implemented after encoding rework // _z_encoding_copy(dst->encoding, src->encoding); dst->kind = src->kind; #if Z_FEATURE_ATTACHMENT == 1 - // TODO(sashacmc): - // z_attachment_t attachment; + dst->attachment = src->attachment; #endif }