MCPcopy Create free account
hub / github.com/ml-explore/mlx-data / check_stream

Function check_stream

mlx/data/core/TARReader.cpp:36–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34 }
35}
36void check_stream(
37 const std::ifstream& f,
38 const std::string filename,
39 const std::string action) {
40 if (!f.good()) {
41 throw std::runtime_error(
42 std::string("TARReader: error " + action + " archive <") + filename +
43 ">");
44 }
45}
46
47struct TARHeader {
48 char filename[100]; // 0-terminated

Callers 1

index_workerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected