Struct optee_teec::ParamTmpRef
source · pub struct ParamTmpRef<'a> { /* private fields */ }
Expand description
This type defines a temporary memory reference. It is used as a
Operation
parameter when the corresponding parameter type is one of
MemrefTempInput
, MemrefTempOutput
, or MemrefTempInout
.
Implementations§
source§impl<'a> ParamTmpRef<'a>
impl<'a> ParamTmpRef<'a>
sourcepub fn new_input(buffer: &'a [u8]) -> Self
pub fn new_input(buffer: &'a [u8]) -> Self
Creates a temporary input only memory reference.
buffer
is a region of memory which needs to be temporarily
registered for the duration of the Operation
.
sourcepub fn new_output(buffer: &'a mut [u8]) -> Self
pub fn new_output(buffer: &'a mut [u8]) -> Self
Creates a temporary memory reference. buffer
is a region of memory
which needs to be temporarily registered for the duration of the
Operation
.
pub fn updated_size(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ParamTmpRef<'a>
impl<'a> RefUnwindSafe for ParamTmpRef<'a>
impl<'a> !Send for ParamTmpRef<'a>
impl<'a> !Sync for ParamTmpRef<'a>
impl<'a> Unpin for ParamTmpRef<'a>
impl<'a> !UnwindSafe for ParamTmpRef<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more