BlockAllocatedMemoryStream(Byte, Int32, Int32) Constructor
Namespace: Gemstone.IOAssembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.167 -- Release Build+1e132a4d484f1823d39b71639f55ad9da4974e99
public BlockAllocatedMemoryStream(
byte[] buffer,
int startIndex,
int length
)
Gemstone.IO.BlockAllocatedMemoryStream = function(buffer, startIndex, length);
Parameters
- buffer Byte
- Initial buffer to copy into stream.
- startIndex Int32
- 0-based start index into the buffer.
- length Int32
- Valid number of bytes within buffer from startIndex.
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.