TheButlah commented on issue #273: URL: https://github.com/apache/teaclave-trustzone-sdk/issues/273#issuecomment-3842938237
> always copying the memory doesn't make much sense. Maybe the user can choose to copy it the first time they get a slice? Or we can provide a wrapper function in the SDK to return a copied slice. Yeah I think so. The ParamMemref::buffer() function should instead expose safe functions to copy to/from rust slices, safe functions to access the volatile buffer at various indexes, and an unsafe raw pointer access (never unsafe slice access, that will *always* be unsound). Either that or we rework ::buffer() to return a "volatile slice" type. -- 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]
