DemesneGH commented on issue #273: URL: https://github.com/apache/teaclave-trustzone-sdk/issues/273#issuecomment-3844976721
> I think we could use the `volatile` crate as the return value of `ParamMemref::as_buffer()` instead of a raw slice, and then the user gets to decide whether to copy or not. > > Would a PR for this be accepted? Yes we would appreciate it. > I also wonder if maybe it makes sense to properly track the mutablity of the paramref, based on whether its in/out/inout, and only expose the ability to write to it based on those values. I agree with you.`ParamMemref` has the member `ParamType` which can be checked when trying to write into it. If you're willing to help with this, please feel free to open a PR. Thanks! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
