Type Alias radicle_ssh::encoding::Buffer
source · pub type Buffer = Zeroizing<Vec<u8>>;
Expand description
General purpose writable byte buffer we use everywhere.
Aliased Type§
struct Buffer(/* private fields */);
Trait Implementations§
source§impl Encoding for Buffer
impl Encoding for Buffer
source§fn extend_ssh_string(&mut self, s: &[u8])
fn extend_ssh_string(&mut self, s: &[u8])
Push an SSH-encoded string to
self
.source§fn extend_ssh_string_blank(&mut self, len: usize) -> &mut [u8] ⓘ
fn extend_ssh_string_blank(&mut self, len: usize) -> &mut [u8] ⓘ
Push an SSH-encoded blank string of length
s
to self
.source§fn extend_ssh_mpint(&mut self, s: &[u8])
fn extend_ssh_mpint(&mut self, s: &[u8])
Push an SSH-encoded multiple-precision integer.
source§fn extend_list<'a, I: Iterator<Item = &'a [u8]>>(&mut self, list: I)
fn extend_list<'a, I: Iterator<Item = &'a [u8]>>(&mut self, list: I)
Push an SSH-encoded list.
source§fn write_empty_list(&mut self)
fn write_empty_list(&mut self)
Push an SSH-encoded empty list.
source§fn extend_u32(&mut self, s: u32)
fn extend_u32(&mut self, s: u32)
Push an SSH-encoded unsigned 32-bit integer.