MCPcopy Create free account
hub / github.com/AbyssEngine/AbyssEngineOld / readUnsigned

Method readUnsigned

src/Abyss/Streams/StreamReader.h:34–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32 [[nodiscard]] std::string readString();
33
34 template <std::unsigned_integral T> T readUnsigned() {
35 T result = 0;
36
37 for (auto i = 0; i < static_cast<int>(sizeof(T)); i++) {
38 result |= static_cast<T>(readByte()) << (8 * i);
39 }
40
41 return result;
42 }
43
44 void skip(int64_t numBytes);
45 void seek(int64_t numBytes);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected