Class ByteBufferSlice
Represents a slice of a byte buffer.
- Inheritance
-
Byte
Buffer Slice
- Implements
- Inherited Members
- Extension Methods
Constructors
- Byte
Buffer Slice(IByte Buffer, int, int) Initializes a new instance of the Byte
Buffer class.Slice
Properties
- Buffer
Gets the buffer.
- 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.
- Dispose(bool)
Releases unmanaged and - optionally - managed 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.