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

Method init_

mlx/data/stream/LineReader.cpp:27–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25 unzip);
26}
27void LineReader::init_(const std::shared_ptr<std::istream>& f, bool unzip) {
28 f_ = f;
29 if (unzip) {
30 uf_ = std::make_shared<bxz::istream>(*f_);
31 }
32 if (!f_->good() || (uf_ && !uf_->good())) {
33 throw std::runtime_error(
34 "LineReader: could not open file <" + filename_ + ">");
35 }
36}
37LineReader::LineReader(
38 const std::shared_ptr<std::istream>& f,
39 const std::string& key,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected