MCPcopy Create free account
hub / github.com/assaultcube/AC / flush

Method flush

source/src/stream.cpp:877–887  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

875 }
876
877 bool flush()
878 {
879 if(zfile.next_out && zfile.avail_out < BUFSIZE)
880 {
881 if(file->write(buf, BUFSIZE - zfile.avail_out) != int(BUFSIZE - zfile.avail_out))
882 return false;
883 }
884 zfile.next_out = buf;
885 zfile.avail_out = BUFSIZE;
886 return true;
887 }
888
889 int write(const void *buf, int len)
890 {

Callers

nothing calls this directly

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected