Exemplo 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);
        }
Exemplo 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);
 }