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

Method readbuf

source/src/stream.cpp:675–681  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

673 }
674
675 void readbuf(int size = BUFSIZE)
676 {
677 if(!zfile.avail_in) zfile.next_in = (Bytef *)buf;
678 size = min(size, int(&buf[BUFSIZE] - &zfile.next_in[zfile.avail_in]));
679 int n = file->read(zfile.next_in + zfile.avail_in, size);
680 if(n > 0) zfile.avail_in += n;
681 }
682
683 int readbyte(int size = BUFSIZE)
684 {

Callers

nothing calls this directly

Calls 2

minFunction · 0.85
readMethod · 0.45

Tested by

no test coverage detected