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

Function WritePacketDataSize

library/cpp/netliba/v12/udp_socket.cpp:124–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122 return *(ui16*)(buf + UDP_PACKET_DATA_SIZE_OFFSET);
123 }
124 static void WritePacketDataSize(char* buf, const size_t size) {
125 Y_ASSERT(size <= 1 << 16);
126 *(ui16*)(buf + UDP_PACKET_DATA_SIZE_OFFSET) = (ui16)size;
127 }
128
129 static void WritePacketHeader(char* packet, const size_t packetSize, const sockaddr_in6& toAddress) {
130 WriteVersion(packet);

Callers 1

WritePacketHeaderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected