IByteBuffer Interface (original) (raw)
Represents a byte buffer (backed by various means depending on the implementation).
Namespace: MongoDB.Bson.IO
Assembly: MongoDB.Bson (in MongoDB.Bson.dll) Version: 2.10.0+569905ff5e778c38ea19d9d0392496a83e1704ed
Syntax
public interface IByteBuffer : IDisposable
Public Interface IByteBuffer Inherits IDisposable
type IByteBuffer =
interface
interface IDisposable
end
The IByteBuffer type exposes the following members.
Properties
| | Name | Description | |
| ---------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------- | ----------------------------------------------------------- |
| | Capacity | Gets the capacity. |
|
| IsReadOnly | Gets a value indicating whether this instance is read only. |
|
| Length | Gets or sets the length. |
Methods
| | 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 | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from IDisposable.) |
|
| 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). |
|
| GetByte | Gets a byte. |
|
| GetBytes | Gets bytes. |
|
| GetSlice | Gets a slice of this buffer. |
|
| MakeReadOnly | Makes this buffer read only. |
|
| SetByte | Sets a byte. |
|
| SetBytes | Sets bytes. |
See Also