MCPcopy Create free account
hub / github.com/PABannier/bark.cpp / read_safe

Function read_safe

bark.cpp:167–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165
166template <typename T>
167static void read_safe(std::ifstream& fin, T& dest) {
168 fin.read((char*)&dest, sizeof(T));
169}
170
171template <typename T>
172static void write_safe(std::ofstream& fout, T& dest) {

Callers 5

ggml_quantize_weightsFunction · 0.70
bark_vocab_loadFunction · 0.70
bark_model_loadFunction · 0.70
bark_model_quantizeFunction · 0.70

Calls 1

readMethod · 0.80

Tested by

no test coverage detected