You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
504 B
21 lines
504 B
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace QRCoder.Framework4._0Methods
|
|
{
|
|
class Stream4Methods
|
|
{
|
|
public static void CopyTo(System.IO.Stream input, System.IO.Stream output)
|
|
{
|
|
byte[] buffer = new byte[16 * 1024];
|
|
int bytesRead;
|
|
while ((bytesRead = input.Read(buffer, 0, buffer.Length)) > 0)
|
|
{
|
|
output.Write(buffer, 0, bytesRead);
|
|
}
|
|
}
|
|
}
|
|
}
|