Akka.Cluster.Tools.PublishSubscribe.Serialization.DistributedPubSubMessageSerializer.Decompress C# (CSharp) 메소드

Decompress() 개인적인 메소드

private Decompress ( byte binary ) : byte[]
binary byte
리턴 byte[]
        private byte[] Decompress(byte[] binary)
        {
            using (var memStream = new MemoryStream(binary))
            using (var gzip = new GZipStream(memStream, CompressionLevel.Fastest))
            using (var outStream = new MemoryStream(BufferSize))
            {
                gzip.CopyTo(outStream);
                return outStream.ToArray();
            }
        }