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

Method DoRead

util/stream/length.cpp:3–10  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1#include "length.h"
2
3size_t TLengthLimitedInput::DoRead(void* buf, size_t len) {
4 const size_t toRead = (size_t)Min<ui64>(Length_, len);
5 const size_t ret = Slave_->Read(buf, toRead);
6
7 Length_ -= ret;
8
9 return ret;
10}
11
12size_t TLengthLimitedInput::DoSkip(size_t len) {
13 len = (size_t)Min<ui64>((ui64)len, Length_);

Callers

nothing calls this directly

Calls 1

ReadMethod · 0.45

Tested by

no test coverage detected