Class ByteArrayBuffer
An IByteBuffer that is backed by a contiguous byte array.
- Inheritance
-
Byte
Array Buffer
- Implements
- Inherited Members
- Extension Methods
Constructors
- Byte
Array Buffer(byte[], bool) Initializes a new instance of the Byte
Array class.Buffer
- Byte
Array Buffer(byte[], int, bool) Initializes a new instance of the Byte
Array class.Buffer
Properties
- Capacity
Gets the capacity.
- Is
Read Only Gets a value indicating whether this instance is read only.
- Length
Gets or sets the length.
Methods
- Access
Backing Bytes(int) 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(int,
int) Clears the specified bytes.
- Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
- Ensure
Capacity(int) 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).
- Get
Byte(int) Gets a byte.
- Get
Bytes(int, byte[], int, int) Gets bytes.
- Get
Slice(int, int) Gets a slice of this buffer.
- Make
Read Only() Makes this buffer read only.
- Set
Byte(int, byte) Sets a byte.
- Set
Bytes(int, byte[], int, int) Sets bytes.