Ejemplo n.º 1
0
 /// <summary>Map from a distance to a distance code.</summary>
 /// <remarks>No side effects. _dist_code[256] and _dist_code[257] are never used.</remarks>
 internal static int DistanceCode(int dist)
 {
     return((dist < 256) ? DistCode[dist] : DistCode[256 + SharedUtils.UrShift(dist, 7)]);
 }