mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-02 10:45:30 +00:00
Add inline markers; simplify ip address conversion in request_from_bytes
This commit is contained in:
parent
4721fa3109
commit
a865f4a1ae
6 changed files with 15 additions and 6 deletions
|
|
@ -7,6 +7,7 @@ use std::net::{IpAddr, Ipv6Addr, Ipv4Addr};
|
|||
use crate::types;
|
||||
|
||||
|
||||
#[inline]
|
||||
pub fn response_to_bytes(
|
||||
bytes: &mut impl Write,
|
||||
response: types::Response,
|
||||
|
|
@ -78,6 +79,7 @@ pub fn response_to_bytes(
|
|||
}
|
||||
|
||||
|
||||
#[inline]
|
||||
pub fn response_from_bytes(
|
||||
bytes: &[u8],
|
||||
ip_version: types::IpVersion,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue