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

Method readBytes

src/Abyss/Streams/StreamReader.cpp:9–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7uint8_t StreamReader::readByte() const { return static_cast<uint8_t>(_inputStream.get()); }
8
9void StreamReader::readBytes(std::span<uint8_t> data) const {
10 if (data.empty()) {
11 return;
12 }
13 _inputStream.read(reinterpret_cast<char *>(&data[0]), static_cast<long>(data.size()));
14}
15
16void StreamReader::readBytes(std::span<int8_t> data) const {
17 if (data.empty()) {

Callers 4

SpriteFontMethod · 0.80
DT1Method · 0.80
DC6FrameMethod · 0.80
DC6Method · 0.80

Calls 2

emptyMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected