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

Function ReadVersion

library/cpp/netliba/v12/udp_socket.cpp:112–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110 ///////////////////////////////////////////////////////////////////////////////
111
112 static ui8 ReadVersion(const char* buf) {
113 return *(ui8*)(buf + UDP_VERSION_OFFSET);
114 }
115 static void WriteVersion(char* buf) {
116 // We use version field to distinguish between netliba v12 and old netliba v6 packets.
117 // At this offset netliba v6 had CMD field (from TUdpHost) which was less than 100.

Callers 1

CheckPacketIntegrityMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected