Constructor RawBsonDocument
RawBsonDocument(IByteBuffer)
Initializes a new instance of the RawBsonDocument class.
public RawBsonDocument(IByteBuffer slice)
Parameters
slice
IByteBufferThe 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
bytes
byte[]The bytes.