Accord.IO.Extensions.CopyTo C# (CSharp) Method

CopyTo() static private method

static private CopyTo ( this input, Stream output ) : void
input this
output Stream
return void
        internal static void CopyTo(this Stream input, Stream output)
        {
            byte[] buffer = new byte[16 * 1024]; 

            int bytesRead;
            while ((bytesRead = input.Read(buffer, 0, buffer.Length)) > 0)
            {
                output.Write(buffer, 0, bytesRead);
            }
        }
    }
Extensions