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

Function readU32

src/SFML/Network/Dns.cpp:201–210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

199}
200
201std::uint32_t readU32(const char*& ptr, const char* end)
202{
203 std::uint32_t x{};
204 if (ptr + 4 <= end)
205 {
206 std::memcpy(&x, ptr, 4);
207 ptr += 4;
208 }
209 return ntohl(x);
210}
211
212std::string readName(const char*& ptr, const char* end, const char* begin)
213{

Callers 3

queryDnsFunction · 0.85
resolveMethod · 0.85
getPublicAddressMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected