BlockAllocatedMemoryStreamToArray Method
Writes the stream contents to a byte array, regardless of the
Position property.
Namespace: Gemstone.IOAssembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.155 -- Release Build+a7d8ba87ff92af3282fc68a6fbfd37a854100b44
Public Function ToArray As Byte()
public:
array<unsigned char>^ ToArray()
Return Value
ByteA
Byte[] containing the current data in the stream
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.
| InvalidOperationException | Cannot create a byte array with more than 2,147,483,591 elements. |
| ObjectDisposedException | The stream is closed. |