Struct fortanix_sgx_abi::ByteBuffer
source · Expand description
An arbitrary-sized buffer of bytes in userspace, allocated by userspace.
This type is used when userspace may return arbitrary-sized data from a
usercall. When reading from the buffer, the enclave must ensure the entire
buffer is in the user memory range. Once the enclave is done with the
buffer, it should deallocate the buffer buffer by calling
free
(data, len, 1)
.
Fields
data: *const u8
len: usize
Trait Implementations
sourceimpl Clone for ByteBuffer
impl Clone for ByteBuffer
sourcefn clone(&self) -> ByteBuffer
fn clone(&self) -> ByteBuffer
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for ByteBuffer
Auto Trait Implementations
impl RefUnwindSafe for ByteBuffer
impl !Send for ByteBuffer
impl !Sync for ByteBuffer
impl Unpin for ByteBuffer
impl UnwindSafe for ByteBuffer
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more