Exemple #1
0
 internal static unsafe void Compact(CompressionType type, VoidPtr srcAddr, int srcLen, Stream outStream)
 {
     switch (type)
     {
     case CompressionType.LZ77: { LZ77.Compact(srcAddr, srcLen, outStream, null); break; }
     }
 }
Exemple #2
0
        public static unsafe void Compact(CompressionType type, VoidPtr srcAddr, int srcLen, Stream outStream, ResourceNode r)
        {
            switch (type)
            {
            case CompressionType.LZ77: { LZ77.Compact(srcAddr, srcLen, outStream, r, false); break; }

            case CompressionType.ExtendedLZ77: { LZ77.Compact(srcAddr, srcLen, outStream, r, true); break; }

            case CompressionType.RunLength: { RunLength.Compact(srcAddr, srcLen, outStream, r); break; }
            }
        }