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, if len
is not 0
, 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)
.
If len
is 0
, the enclave should ignore data
. It should not call
free
.
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 more
impl Copy for ByteBuffer
impl Send for ByteBuffer
Auto Trait Implementations
impl RefUnwindSafe for ByteBuffer
impl !Sync for ByteBuffer
impl Unpin for ByteBuffer
impl UnwindSafe for ByteBuffer
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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