Hololens/Lib/UdpSockets.cs
//###########################################################################################
/// <summary>
/// Calculate the number of packet needed for sending all data
/// </summary>
Calculate the number of packet needed for sending all data
Calculate the number of packet needed for sending all data
private void SetNbPacket()
        {
            if (_data.Length % _packet_size == 0)
            {
                _nb_packet = _data.Length / _packet_size;
            }
            else
            {
                _nb_packet = _data.Length / _packet_size + 1;
            }
        }
private void SetNbPacket ( ) { if ( _data . Length % _packet_size == 0 ) { _nb_packet = _data . Length / _packet_size ; } else { _nb_packet = _data . Length / _packet_size + 1 ; } }
Calculate the number of packet needed for sending all data
Calculate the number of packet needed for sending all data