GitCommands.GitCommands.StreamCopy C# (CSharp) Method

StreamCopy() public static method

public static StreamCopy ( Stream input, Stream output ) : void
input Stream
output Stream
return void
        public static void StreamCopy(Stream input, Stream output)
        {
            int read;
            var buffer = new byte[2048];
            do
            {
                read = input.Read(buffer, 0, buffer.Length);
                output.Write(buffer, 0, read);
            } while (read > 0);
        }
GitCommands