Constructor RawBsonDocument
RawBsonDocument(IByteBuffer)
Initializes a new instance of the RawBsonDocument class.
public RawBsonDocument(IByteBuffer slice)
Parameters
sliceIByteBufferThe slice.
Exceptions
- ArgumentNullException
 slice
- ArgumentException
 RawBsonDocument cannot be used with an IByteBuffer that needs disposing.
RawBsonDocument(byte[])
Initializes a new instance of the RawBsonDocument class.
public RawBsonDocument(byte[] bytes)
Parameters
bytesbyte[]The bytes.