-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shm mutation example #861
Shm mutation example #861
Conversation
Few API improvements Add missing mutable accessor 'z_sample_payload_mut'
…ZBytes where needed)
@@ -60,6 +60,17 @@ pub extern "C" fn z_reply_err_payload(this_: &z_loaned_reply_err_t) -> &z_loaned | |||
this_.as_rust_type_ref().payload().as_loaned_c_type_ref() | |||
} | |||
|
|||
/// Returns mutable reply error payload. | |||
#[no_mangle] | |||
pub extern "C" fn z_reply_err_payload_mut( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no way to get mutable err or mutable sample from the reply, so this method is useless for now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then we should add this. SHM buffer may reside literally everywhere where ZBytes is
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added
Could you also add docs for all new functions. |
Conflicts: Cargo.lock build-resources/opaque-types/Cargo.lock
- review fix for function doc
done |
Shm mutation example + some API additions for mutable accesses