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

Method ObjectByKey

library/cpp/archive/yarchive.cpp:318–326  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

316 }
317
318 inline TAutoPtr<IInputStream> ObjectByKey(const TStringBuf key) const {
319 TBlob subBlob = BlobByKey(key);
320
321 if (UseDecompression) {
322 return new TArchiveInputStream(subBlob);
323 } else {
324 return new TMemoryInput(subBlob.Data(), subBlob.Length());
325 }
326 }
327
328 inline TBlob ObjectBlobByKey(const TStringBuf key) const {
329 TBlob subBlob = BlobByKey(key);

Callers

nothing calls this directly

Calls 2

DataMethod · 0.45
LengthMethod · 0.45

Tested by

no test coverage detected