|
static void | CopyTo (this Stream source, Stream destination) |
|
static void | CopyTo (this Stream source, Stream destination, int bufferSize) |
|
Definition at line 21 of file StreamExtensions.cs.
static void Deveel.Data.Util.StreamExtensions.CopyTo |
( |
this Stream |
source, |
|
|
Stream |
destination |
|
) |
| |
|
inlinestatic |
Definition at line 22 of file StreamExtensions.cs.
23 CopyTo(source, destination, 2048);
static void CopyTo(this Stream source, Stream destination)
static void Deveel.Data.Util.StreamExtensions.CopyTo |
( |
this Stream |
source, |
|
|
Stream |
destination, |
|
|
int |
bufferSize |
|
) |
| |
|
inlinestatic |
Definition at line 26 of file StreamExtensions.cs.
28 throw new ArgumentNullException(
"source");
29 if (destination == null)
30 throw new ArgumentNullException(
"destination");
33 throw new ArgumentException(
"The source stream cannot be read.");
34 if (!destination.CanWrite)
35 throw new ArgumentException(
"The destination stream cannot be write");
37 var buffer =
new byte[bufferSize];
40 while ((readCount = source.Read(buffer, 0, bufferSize)) != 0) {
41 destination.Write(buffer, 0, readCount);
The documentation for this class was generated from the following file:
- /var/calculate/remote/distfiles/egit-src/deveeldb.git/src/deveeldb/Deveel.Data.Util/StreamExtensions.cs