MCPcopy Create free account
hub / github.com/DNSCrypt/encrypted-dns-server / arcount

Function arcount

src/dns.rs:97–99  ·  view source on GitHub ↗
(packet: &[u8])

Source from the content-addressed store, hash-verified

95
96#[inline]
97pub fn arcount(packet: &[u8]) -> u16 {
98 BigEndian::read_u16(&packet[10..])
99}
100
101fn arcount_inc(packet: &mut [u8]) -> Result<(), Error> {
102 let mut arcount = arcount(packet);

Callers 5

arcount_incFunction · 0.85
min_ttlFunction · 0.85
set_ttlFunction · 0.85
query_metaFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected