We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1234481 commit 6de2c9bCopy full SHA for 6de2c9b
src/InEngine.Core/StreamCopy.cs
@@ -1,22 +1,15 @@
1
-using System;
2
-using System.IO;
3
-using System.IO.Compression;
4
-using System.Text;
+using System.IO;
5
6
namespace InEngine.Core
7
{
8
- public class StreamCopy
+ public static class StreamCopy
9
10
public static void FromTo(Stream src, Stream dest)
11
12
byte[] bytes = new byte[4096];
13
-
14
int cnt;
15
16
while ((cnt = src.Read(bytes, 0, bytes.Length)) != 0)
17
- {
18
dest.Write(bytes, 0, cnt);
19
- }
20
}
21
22
0 commit comments