| 119 | } |
| 120 | |
| 121 | static ui16 ReadPacketDataSize(const char* buf) { |
| 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; |
no outgoing calls
no test coverage detected