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

Method CodecID

library/cpp/blockcodecs/core/stream.cpp:31–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29 }
30
31 static inline TCodecID CodecID(const ICodec* c) {
32 const TStringBuf name = c->Name();
33
34 union {
35 ui16 Parts[2];
36 ui32 Data;
37 } x;
38
39 x.Data = MurmurHash<ui32>(name.data(), name.size());
40
41 return x.Parts[1] ^ x.Parts[0];
42 }
43
44 inline const ICodec* Find(TCodecID id) const {
45 TByID::const_iterator it = ByID.find(id);

Callers

nothing calls this directly

Calls 3

NameMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected