rust/library/core/src/net
okaneco 31c758e052 net: Add branch to Parser::read_number for parsing without checked
arithmetic

If `max_digits.is_some()`, then we know we are parsing a `u8` or `u16`
because `read_number` is only called with `Some(3)` or `Some(4)`. Both
types fit well within a `u32` without risk of overflow. Thus, we can use
plain arithmetic to avoid extra instructions from `checked_mul` and
`checked_add`.
2024-03-04 18:46:09 -05:00
..
display_buffer.rs Rename MaybeUninit::write_slice 2023-11-11 22:54:07 +00:00
ip_addr.rs Rollup merge of #119641 - eopb:std-unused-ip-feature, r=ChrisDenton 2024-01-27 10:48:47 +01:00
mod.rs Bump version placeholders 2024-02-08 07:43:38 -05:00
parser.rs net: Add branch to Parser::read_number for parsing without checked 2024-03-04 18:46:09 -05:00
socket_addr.rs Derive Ord, PartialOrd and Hash for SocketAddr* 2023-10-14 00:48:22 +00:00