mirror of
https://github.com/Noratrieb/cluelessh.git
synced 2026-01-15 17:05:05 +01:00
attempts
This commit is contained in:
parent
26fd89d9f8
commit
e4363a61d2
3 changed files with 40 additions and 32 deletions
|
|
@ -16,11 +16,6 @@ impl<'a> Parser<'a> {
|
|||
Ok(arr[0])
|
||||
}
|
||||
|
||||
pub(crate) fn u16(&mut self) -> Result<u16> {
|
||||
let arr = self.read_array()?;
|
||||
Ok(u16::from_be_bytes(arr))
|
||||
}
|
||||
|
||||
pub(crate) fn u32(&mut self) -> Result<u32> {
|
||||
let arr = self.read_array()?;
|
||||
Ok(u32::from_be_bytes(arr))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue