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.
Sourcepub fn new_inout(buffer: &'a mut [u8]) -> Self
pub fn new_inout(buffer: &'a mut [u8]) -> Self
Creates a temporary input/output memory reference.
buffer is a region of memory which needs to be temporarily
registered for the duration of the Operation and can be both
read and written by the Trusted Application (TA).
This is useful when you need to pass data to a TA that will modify it and return the modified data in the same buffer.