|
BlockAllocatedMemoryStream(Byte) Constructor
|
Namespace: GSF.IOAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.258-beta+f8b6aa3dbfe0b4cc2b0b0760dd5d2a3dd4f59d09
Syntaxpublic BlockAllocatedMemoryStream(
byte[] buffer
)
Public Sub New (
buffer As Byte()
)
public:
BlockAllocatedMemoryStream(
array<unsigned char>^ buffer
)
new :
buffer : byte[] -> BlockAllocatedMemoryStreamGSF.IO.BlockAllocatedMemoryStream = function(buffer);
View SourceParameters
- buffer Byte
- Initial buffer to copy into stream.
Exceptions| Exception | Condition |
|---|
| ArgumentNullException | buffer is null. |
Remarks
Unlike
MemoryStream, the
BlockAllocatedMemoryStream will not use the provided
buffer as its backing buffer. The buffer will be copied into internally managed reusable
memory buffers. Subsequently, the notion of a non-expandable stream is not supported.
See Also