ICSharpCode.SharpZipLib.Zip.Compression.PendingBuffer.ToByteArray C# (CSharp) Method

ToByteArray() public method

Convert internal buffer to byte array. Buffer is empty on completion
public ToByteArray ( ) : byte[]
return byte[]
        public byte[] ToByteArray()
        {
            AlignToByte();

            byte[] result = new byte[end - start];
            System.Array.Copy(buffer_, start, result, 0, result.Length);
            start = 0;
            end = 0;
            return result;
        }