pub struct Shellcoder<'buf>(/* private fields */);Expand description
A shellcoder backed by a static buffer.
Implementations§
Trait Implementations§
Source§impl<'buf> Debug for Shellcoder<'buf>
impl<'buf> Debug for Shellcoder<'buf>
Source§impl<'buf> PartialEq for Shellcoder<'buf>
impl<'buf> PartialEq for Shellcoder<'buf>
Source§impl Shellcoder for Shellcoder<'_>
impl Shellcoder for Shellcoder<'_>
Source§fn add<O>(&mut self, op: impl Borrow<O>) -> Result<&mut Self>where
O: Op,
fn add<O>(&mut self, op: impl Borrow<O>) -> Result<&mut Self>where
O: Op,
Pushes an operation, and returns the number of bytes that have been
written. Read more
Source§fn advance(&mut self, n: usize) -> Result<&mut Self>
fn advance(&mut self, n: usize) -> Result<&mut Self>
Advances the cursor by n bytes, filling gaps with zeroes. Read more
Source§fn fill(&mut self, len: usize, chr: u8) -> Result<&mut Self>
fn fill(&mut self, len: usize, chr: u8) -> Result<&mut Self>
Fills with a certain number of bytes. Read more
Source§fn int_be<I>(&mut self, i: I) -> Result<&mut Self>where
I: EncodableInteger,
fn int_be<I>(&mut self, i: I) -> Result<&mut Self>where
I: EncodableInteger,
Pushes an integer in big endian. Read more
impl<'buf> Eq for Shellcoder<'buf>
impl<'buf> StructuralPartialEq for Shellcoder<'buf>
Auto Trait Implementations§
impl<'buf> Freeze for Shellcoder<'buf>
impl<'buf> RefUnwindSafe for Shellcoder<'buf>
impl<'buf> Send for Shellcoder<'buf>
impl<'buf> Sync for Shellcoder<'buf>
impl<'buf> Unpin for Shellcoder<'buf>
impl<'buf> !UnwindSafe for Shellcoder<'buf>
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