 | StreamExtensionsCopySize(Stream, Stream, Int64, Int32) Method |
Copies the specified number of bytes from one stream to another using the specified buffer size.
Namespace: Ookii.JumboAssembly: Ookii.Jumbo (in Ookii.Jumbo.dll) Version: 0.3.0+dc1307f20e065bb638e0b73a34cd216f57e486f1
Syntaxpublic static void CopySize(
this Stream source,
Stream destination,
long size,
int bufferSize
)
<ExtensionAttribute>
Public Shared Sub CopySize (
source As Stream,
destination As Stream,
size As Long,
bufferSize As Integer
)
public:
[ExtensionAttribute]
static void CopySize(
Stream^ source,
Stream^ destination,
long long size,
int bufferSize
)
[<ExtensionAttribute>]
static member CopySize :
source : Stream *
destination : Stream *
size : int64 *
bufferSize : int -> unit
Parameters
- source Stream
- The stream to copy from.
- destination Stream
- The stream to copy to.
- size Int64
- The total number of bytes to copy.
- bufferSize Int32
- The size of the buffer to use while copying.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Stream. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also