예제 #1
0
 public int GetEncodedLenght()
 {
     //For each code, look for it in queues, check its frequency and multiple that by amount of bits of code
     return(Codes.Sum(valuePair => (int)Queues.Find(d => d.Val == valuePair.Key).F *valuePair.Value.Length));
 }