MCPcopy Create free account
hub / github.com/dmlc/parameter_server / write

Method write

src/util/file.cc:148–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146}
147
148size_t File::write(const void* const buf, size_t size) {
149 return (is_gz_ ? gzwrite(gz_f_, buf, size) : fwrite(buf, 1, size, f_));
150}
151
152char* File::readLine(char* const output, uint64 max_length) {
153 return (is_gz_ ? gzgets(gz_f_, output, max_length) : fgets(output, max_length, f_));

Callers 2

writeToFileMethod · 0.80
WriteProtocolMessageMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected