public Decompress ( byte value ) : byte[] | ||
value | byte | /// The byte array of compressed data. /// |
return | byte[] |
public byte[] Decompress(byte[] value)
{
if (value.Length <= 0)
{
return new byte[0];
}
int count = value.Length - 1;
byte[] temp = new byte[count];
System.Buffer.BlockCopy(value, 1, temp, 0, count);
return value[0] == 0 ? temp : GZipCompressor.Instance.Decompress(temp);
}