ISupportBinaryImageExtensionsCopyBinaryImageToStreamAsync Method
Namespace: Gemstone.IO.ParsingAssembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.169 -- Release Build+7345f63a8c9771f20dc280b192df2ccb62049660
Gemstone.IO.Parsing.ISupportBinaryImageExtensions.CopyBinaryImageToStreamAsync = function(imageSource, stream, clearArray, cancellationToken);
- imageSource ISupportBinaryImage
- The ISupportBinaryImage source whose binary image will be copied.
- stream Stream
- The Stream to which the binary image will be written.
- clearArray Boolean (Optional)
-
Clears any rented buffers of their contents so that a subsequent consumer will not
see the previous consumer's content. If false, default, the array's contents
are left unchanged.
- cancellationToken CancellationToken (Optional)
- A token to monitor for cancellation requests.
TaskA task that represents the asynchronous operation.In Visual Basic and C#, you can call this method as an instance method on any object of type
ISupportBinaryImage. 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).
This method uses a buffer rented from a shared
ArrayPoolT to optimize memory usage.
The buffer is returned to the pool after the operation completes.