Beispiel #1
0
        public static byte[] Compress(byte[] data)
        {
            GZipPacker p = new GZipPacker();

            p.Write(data, 0, data.Length, true);
            return(p.GeneratedData.Read());
        }
Beispiel #2
0
        public byte[] CompressToGZip()
        {
            GZipPacker g = new GZipPacker();

            byte[] data = this.fifo.Read();

            g.Write(data, 0, data.Length, true);

            return(g.GeneratedData.Read());
        }