MCPcopy Create free account
hub / github.com/davisking/dlib / load_contents

Function load_contents

dlib/image_loader/jxl_loader.cpp:16–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14{
15
16 static std::vector<unsigned char> load_contents(const std::string& filename)
17 {
18 std::ifstream stream(filename, std::ios::binary);
19 stream.exceptions(std::ifstream::failbit | std::ifstream::badbit | std::ifstream::eofbit);
20 std::vector<unsigned char> buffer;
21 vectorstream temp(buffer);
22 temp << stream.rdbuf();
23 return buffer;
24 }
25
26// ----------------------------------------------------------------------------------------
27

Callers 1

jxl_loaderMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected