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

Method Read

util/stream/input.h:39–45  ·  view source on GitHub ↗

* Reads some data from the stream. Note that this function might read less * data than what was requested. Use `Load` function if you want to read as * much data as possible. * * @param buf Buffer to read into. * @param len Number of bytes to read. * @returns Number of bytes that were actually read.

Source from the content-addressed store, hash-verified

37 * A return value of zero signals end of stream.
38 */
39 inline size_t Read(void* buf, size_t len) {
40 if (len == 0) {
41 return 0;
42 }
43
44 return DoRead(buf, len);
45 }
46
47 /**
48 * Reads one character from the stream.

Callers 12

Y_UNIT_TESTFunction · 0.45
DoReadMethod · 0.45
DoReadMethod · 0.45
DoReadMethod · 0.45
Y_UNIT_TESTFunction · 0.45
DoReadMethod · 0.45
FillMethod · 0.45
Y_NO_INLINE TestFunction · 0.45
Y_UNIT_TESTFunction · 0.45
TestGenericReadMethod · 0.45
TestBufferStreamMethod · 0.45
TestStreamReadTo1Function · 0.45

Calls

no outgoing calls

Tested by 3

TestGenericReadMethod · 0.36
TestBufferStreamMethod · 0.36
TestStreamReadTo1Function · 0.36