ByteArrayBuffer Class |
Namespace: MongoDB.Bson.IO
The ByteArrayBuffer type exposes the following members.
Name | Description | |
---|---|---|
ByteArrayBuffer(Byte, Boolean) |
Initializes a new instance of the ByteArrayBuffer class.
| |
ByteArrayBuffer(Byte, Int32, Boolean) |
Initializes a new instance of the ByteArrayBuffer class.
|
Name | Description | |
---|---|---|
Capacity |
Gets the capacity.
| |
IsReadOnly |
Gets a value indicating whether this instance is read only.
| |
Length |
Gets or sets the length.
|
Name | Description | |
---|---|---|
AccessBackingBytes |
Access the backing bytes directly. The returned ArraySegment will point to the desired position and contain
as many bytes as possible up to the next chunk boundary (if any). If the returned ArraySegment does not
contain enough bytes for your needs you will have to call ReadBytes instead.
| |
Clear |
Clears the specified bytes.
| |
Dispose | Releases all resources used by the ByteArrayBuffer | |
EnsureCapacity |
Ensure that the buffer has a minimum capacity. Depending on the buffer allocation strategy
calling this method may result in a higher capacity than the minimum (but never lower).
| |
Equals | (Inherited from Object.) | |
GetByte |
Gets a byte.
| |
GetBytes |
Gets bytes.
| |
GetHashCode | (Inherited from Object.) | |
GetSlice |
Gets a slice of this buffer.
| |
GetType | (Inherited from Object.) | |
MakeReadOnly |
Makes this buffer read only.
| |
SetByte |
Sets a byte.
| |
SetBytes |
Sets bytes.
| |
ToString | (Inherited from Object.) |
Name | Description | |
---|---|---|
ToBson |
Serializes an object to a BSON byte array.
(Defined by BsonExtensionMethods.) | |
ToBsonDocument |
Serializes an object to a BsonDocument.
(Defined by BsonExtensionMethods.) | |
ToJson |
Serializes an object to a JSON string.
(Defined by BsonExtensionMethods.) |