Screwing around with extended messages
This commit is contained in:
parent
d722f0edcb
commit
302e95649d
5 changed files with 476 additions and 96 deletions
|
|
@ -21,6 +21,9 @@ impl<'de> BencodeDeserializer<'de> {
|
|||
torrent_info_digest: None,
|
||||
}
|
||||
}
|
||||
pub fn into_remaining(self) -> &'de [u8] {
|
||||
self.buf
|
||||
}
|
||||
fn parse_integer(&mut self) -> Result<i64, Error> {
|
||||
match self.buf.iter().copied().position(|e| e == b'e') {
|
||||
Some(end) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue