MCPcopy Create free account
hub / github.com/boostorg/asio / version

Method version

example/cpp11/icmp/ipv4_header.hpp:56–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54 ipv4_header() { std::fill(rep_, rep_ + sizeof(rep_), 0); }
55
56 unsigned char version() const { return (rep_[0] >> 4) & 0xF; }
57 unsigned short header_length() const { return (rep_[0] & 0xF) * 4; }
58 unsigned char type_of_service() const { return rep_[1]; }
59 unsigned short total_length() const { return decode(2, 3); }

Callers 1

ipv4_headerClass · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected