public void Add(NCPacketDataType type, int bits)
        {
            Dictionary <NCPacketDataType, int> bitsPerType;
            NCPacketDataType key;

            (bitsPerType = this._bitsPerType)[key = type] = bitsPerType[key] + bits;
        }
        public static Color GetTypeColor(NCPacketDataType type)
        {
            switch (type)
            {
            case NCPacketDataType.InputStream:
                return(Color.Pink);

            case NCPacketDataType.Ghost:
                return(Color.Red);

            case NCPacketDataType.Ack:
                return(Color.Lime);

            case NCPacketDataType.Event:
                return(Color.Blue);

            case NCPacketDataType.ExtraData:
                return(Color.White);

            default:
                return(Color.Yellow);
            }
        }
 public int Get(NCPacketDataType type) => this._bitsPerType[type];