ByteBuffer ByteBuffer Struct

Definition

public struct ByteBuffer
Public Structure ByteBuffer

Constructors

ByteBuffer(ArraySegment) ByteBuffer(ArraySegment(Of Byte))

public ByteBuffer(ArraySegment<byte> data)
Public Sub New(data As ArraySegment(Of Byte))
Parameters

ByteBuffer(BufferSegment, BufferSegment) ByteBuffer(BufferSegment, BufferSegment)

public ByteBuffer(BufferSegment head, BufferSegment tail)
Public Sub New(head As BufferSegment, tail As BufferSegment)
Parameters

Properties

IsEmpty IsEmpty

public bool IsEmpty { get; }
Public ReadOnly Property IsEmpty As Boolean

Length Length

public int Length { get; }
Public ReadOnly Property Length As Integer
Value
Int32 Int32

Methods

Equals(Object) Equals(Object)

Inherited from ValueType

Equals(Object, Object) Equals(Object, Object)

Inherited from Object

GetArraySegment() GetArraySegment()

public ArraySegment<byte> GetArraySegment()
Public Function GetArraySegment As ArraySegment(Of Byte)
Returns

GetEnumerator() GetEnumerator()

public ByteBuffer.Enumerator GetEnumerator()
Public Function GetEnumerator As ByteBuffer.Enumerator
Returns

GetHashCode() GetHashCode()

Inherited from ValueType

GetType() GetType()

Inherited from Object

IndexOf(Byte) IndexOf(Byte)

public int IndexOf(byte data)
Public Function IndexOf(data As Byte) As Integer
Parameters
data
Byte Byte
Returns

IndexOf(Byte, Int32) IndexOf(Byte, Int32)

public int IndexOf(byte value, int start)
Public Function IndexOf(value As Byte, start As Integer) As Integer
Parameters
value
Byte Byte
start
Int32 Int32
Returns

ReferenceEquals(Object, Object) ReferenceEquals(Object, Object)

Inherited from Object

Slice(Int32, Int32) Slice(Int32, Int32)

public ByteBuffer Slice(int offset, int length)
Public Function Slice(offset As Integer, length As Integer) As ByteBuffer
Parameters
offset
Int32 Int32
length
Int32 Int32
Returns

ToString() ToString()

Inherited from ValueType