| StreamExtensionsCopySize Method (Stream, Stream, Int64) |
Copies the specified number of bytes from one stream to another using the default buffer size.
Namespace:
Ookii.Jumbo
Assembly:
Ookii.Jumbo (in Ookii.Jumbo.dll) Version: 2.0.0
Syntax public static void CopySize(
this Stream source,
Stream destination,
long size
)
<ExtensionAttribute>
Public Shared Sub CopySize (
source As Stream,
destination As Stream,
size As Long
)
public:
[ExtensionAttribute]
static void CopySize(
Stream^ source,
Stream^ destination,
long long size
)
[<ExtensionAttribute>]
static member CopySize :
source : Stream *
destination : Stream *
size : int64 -> unit
Parameters
- source
- Type: System.IOStream
The stream to copy from. - destination
- Type: System.IOStream
The stream to copy to. - size
- Type: SystemInt64
The total number of bytes to copy.
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