private void CompactNode(byte[] buffer, int offset) { DhtMessage.Write(buffer, offset, id.Bytes); CompactPort(buffer, offset + 20); }
public void CompactPort(byte[] buffer, int offset) { DhtMessage.Write(buffer, offset, endpoint.Address.GetAddressBytes()); DhtMessage.Write(buffer, offset + 4, (ushort)endpoint.Port); }