Skip to content

Commit

Permalink
update docs regarding undefined behavior when using multiple z_bytes_…
Browse files Browse the repository at this point in the history
…writers
  • Loading branch information
DenisBiryukov91 committed Sep 13, 2024
1 parent 25c25f6 commit 9f330cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/zenoh-pico/api/primitives.h
Original file line number Diff line number Diff line change
Expand Up @@ -1055,7 +1055,8 @@ int64_t z_bytes_reader_tell(z_bytes_reader_t *reader);

/**
* Constructs writer for :c:type:`z_loaned_bytes_t`.
*
* Note: creating another writer while previous one is still in use is undefined behaviour.
*
* Parameters:
* bytes: Data container to write to.
* writer: Uninitialized memory location where writer is to be constructed.
Expand Down

0 comments on commit 9f330cf

Please sign in to comment.