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

Method loadBytes

src/Abyss/FileSystem/FileLoader.cpp:26–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26std::vector<std::byte> FileLoader::loadBytes(std::string_view path) {
27 auto stream = loadFile(path);
28 std::vector<std::byte> result;
29 result.resize(stream.size());
30 stream.read(std::bit_cast<char *>(result.data()), stream.size());
31 return result;
32}
33
34InputStream MultiFileLoader::loadFile(std::string_view path) {
35 auto it = _cacheWhere.find(path);

Callers 1

PaletteMethod · 0.80

Calls 2

resizeMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected