Table of Contents

Constructor ByteBufferStream

Namespace
MongoDB.Bson.IO
Assembly
MongoDB.Bson.dll

ByteBufferStream(IByteBuffer, bool)

Initializes a new instance of the ByteBufferStream class.

public ByteBufferStream(IByteBuffer buffer, bool ownsBuffer = false)

Parameters

buffer IByteBuffer

The buffer.

ownsBuffer bool

Whether the stream owns the buffer and should Dispose it when done.