Describe the bug
The access to internal owned object can be performed in two ways: ro and rw. For example for the z_owned_sample_t the mentods z_sample_payload(const z_loaned_sample_t*) and z_sample_payload_mut(z_loaned_sample_t*). The second one allows to perform z_take operation to process the payload outside of the sample.
It's necessary to:
- provide the same method for attacment for api completeness.
- review the api: check if all mehods for accessing internal owned object have both const and mut accesors
To reproduce
System info
Describe the bug
The access to internal owned object can be performed in two ways: ro and rw. For example for the
z_owned_sample_tthe mentodsz_sample_payload(const z_loaned_sample_t*)andz_sample_payload_mut(z_loaned_sample_t*). The second one allows to performz_takeoperation to process the payload outside of the sample.It's necessary to:
To reproduce
System info