MCPcopy Create free account
hub / github.com/catboost/catboost / DoReadAll

Method DoReadAll

util/stream/input.cpp:43–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43ui64 IInputStream::DoReadAll(IOutputStream& out) {
44 TTempBuf buffer;
45 void* ptr = buffer.Data();
46 size_t size = buffer.Size();
47
48 ui64 result = 0;
49 while (size_t read = Read(ptr, size)) {
50 out.Write(ptr, read);
51 result += read;
52 }
53
54 return result;
55}
56
57size_t IInputStream::Load(void* buf_in, size_t len) {
58 char* buf = (char*)buf_in;

Callers

nothing calls this directly

Calls 4

ReadFunction · 0.50
DataMethod · 0.45
SizeMethod · 0.45
WriteMethod · 0.45

Tested by

no test coverage detected