Esempio n. 1
0
        public byte[] Decompress(byte[] src, out int dest_size)
        {
            int len = src.Length;

            byte[] dest = new byte[NativeEncryption.MIN_DECBUF_SIZE(len)];
            NativeEncryption.Decompress(dest, src, out dest_size, ref len, ref obj);
            return(dest);
        }
Esempio n. 2
0
 public byte[] Decompress(byte[] src, int len, out int dest_size)
 {
     if (src.Length < len)
     {
         throw new ArgumentOutOfRangeException("len", "Requested data lenght is larger than specified buffer.");
     }
     byte[] dest = new byte[NativeEncryption.MIN_DECBUF_SIZE(len)];
     NativeEncryption.Decompress(dest, src, out dest_size, ref len, ref obj);
     return(dest);
 }