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

Function readU8

src/SFML/Network/Dns.cpp:179–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177#endif
178
179std::uint8_t readU8(const char*& ptr, const char* end)
180{
181 std::uint8_t x{};
182 if (ptr + 1 <= end)
183 {
184 std::memcpy(&x, ptr, 1);
185 ptr += 1;
186 }
187 return x;
188}
189
190std::uint16_t readU16(const char*& ptr, const char* end)
191{

Callers 2

readNameFunction · 0.85
getPublicAddressMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected