MCPcopy Create free account
hub / github.com/SFML/SFML / readU16

Function readU16

src/SFML/Network/Dns.cpp:190–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188}
189
190std::uint16_t readU16(const char*& ptr, const char* end)
191{
192 std::uint16_t x{};
193 if (ptr + 2 <= end)
194 {
195 std::memcpy(&x, ptr, 2);
196 ptr += 2;
197 }
198 return ntohs(x);
199}
200
201std::uint32_t readU32(const char*& ptr, const char* end)
202{

Callers 3

queryDnsFunction · 0.85
queryMxMethod · 0.85
querySrvMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected