pub struct BufferUpdate<'a> { /* private fields */ }Expand description
A struct indicating the portion of a buffer written to, and/or not written to, during an encryption/decryption operation.
Implementations§
Source§impl BufferUpdate<'_>
impl BufferUpdate<'_>
Sourcepub fn written(&self) -> &[u8] ⓘ
pub fn written(&self) -> &[u8] ⓘ
Returns the slice from the buffer that was modified by the operation.
Sourcepub fn remainder(&self) -> &[u8] ⓘ
pub fn remainder(&self) -> &[u8] ⓘ
Returns the slice of the buffer that was not modified by the operation.
Sourcepub fn remainder_mut(&mut self) -> &mut [u8] ⓘ
pub fn remainder_mut(&mut self) -> &mut [u8] ⓘ
Returns a mutable slice of the buffer that was not modified by the operation.