|
BlockAllocatedMemoryStreamToArray Method
|
Writes the stream contents to a byte array, regardless of the
Position property.
Namespace: GSF.IOAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.244-beta+c33f622c070b2c1078a06bcb41bdeb4c19d19a0b
SyntaxPublic Function ToArray As Byte()
member ToArray : unit -> byte[]
View SourceReturn Value
ByteA
Byte[] containing the current data in the stream
Exceptions
Remarks
This may fail if there is not enough contiguous memory available to hold current size of stream.
When possible use methods which operate on streams directly instead.
See Also