C# Class Helios.Buffers.UnpooledDirectByteBuf

An unpooled non-blocking IO byte buffer implementation.
Inheritance: AbstractReferenceCountedByteBuf
ファイルを表示 Open project: helios-io/helios

Public Methods

Method Description
AdjustCapacity ( int newCapacity ) : IByteBuf
Compact ( ) : IByteBuf
CompactIfNecessary ( ) : IByteBuf
Copy ( int index, int length ) : IByteBuf
GetBytes ( int index, IByteBuf destination, int dstIndex, int length ) : IByteBuf
GetBytes ( int index, byte destination, int dstIndex, int length ) : IByteBuf
GetIoBuffer ( int index, int length ) : ArraySegment
GetIoBuffers ( int index, int length ) : ArraySegment[]
SetBytes ( int index, IByteBuf src, int srcIndex, int length ) : IByteBuf
SetBytes ( int index, byte src, int srcIndex, int length ) : IByteBuf
UnpooledDirectByteBuf ( IByteBufAllocator alloc, byte initialArray, int maxCapacity ) : System
UnpooledDirectByteBuf ( IByteBufAllocator alloc, byte initialArray, int readerIndex, int writerIndex, int maxCapacity ) : System
UnpooledDirectByteBuf ( IByteBufAllocator alloc, int initialCapacity, int maxCapacity ) : System
Unwrap ( ) : IByteBuf

Protected Methods

Method Description
Deallocate ( ) : void
SetBuffer ( byte initialBuffer ) : void
_GetByte ( int index ) : byte
_GetInt ( int index ) : int
_GetLong ( int index ) : long
_GetShort ( int index ) : short
_SetByte ( int index, int value ) : IByteBuf
_SetInt ( int index, int value ) : IByteBuf
_SetLong ( int index, long value ) : IByteBuf
_SetShort ( int index, int value ) : IByteBuf

Method Details

AdjustCapacity() public method

public AdjustCapacity ( int newCapacity ) : IByteBuf
newCapacity int
return IByteBuf

Compact() public method

public Compact ( ) : IByteBuf
return IByteBuf

CompactIfNecessary() public method

public CompactIfNecessary ( ) : IByteBuf
return IByteBuf

Copy() public method

public Copy ( int index, int length ) : IByteBuf
index int
length int
return IByteBuf

Deallocate() protected method

protected Deallocate ( ) : void
return void

GetBytes() public method

public GetBytes ( int index, IByteBuf destination, int dstIndex, int length ) : IByteBuf
index int
destination IByteBuf
dstIndex int
length int
return IByteBuf

GetBytes() public method

public GetBytes ( int index, byte destination, int dstIndex, int length ) : IByteBuf
index int
destination byte
dstIndex int
length int
return IByteBuf

GetIoBuffer() public method

public GetIoBuffer ( int index, int length ) : ArraySegment
index int
length int
return ArraySegment

GetIoBuffers() public method

public GetIoBuffers ( int index, int length ) : ArraySegment[]
index int
length int
return ArraySegment[]

SetBuffer() protected method

protected SetBuffer ( byte initialBuffer ) : void
initialBuffer byte
return void

SetBytes() public method

public SetBytes ( int index, IByteBuf src, int srcIndex, int length ) : IByteBuf
index int
src IByteBuf
srcIndex int
length int
return IByteBuf

SetBytes() public method

public SetBytes ( int index, byte src, int srcIndex, int length ) : IByteBuf
index int
src byte
srcIndex int
length int
return IByteBuf

UnpooledDirectByteBuf() public method

public UnpooledDirectByteBuf ( IByteBufAllocator alloc, byte initialArray, int maxCapacity ) : System
alloc IByteBufAllocator
initialArray byte
maxCapacity int
return System

UnpooledDirectByteBuf() public method

public UnpooledDirectByteBuf ( IByteBufAllocator alloc, byte initialArray, int readerIndex, int writerIndex, int maxCapacity ) : System
alloc IByteBufAllocator
initialArray byte
readerIndex int
writerIndex int
maxCapacity int
return System

UnpooledDirectByteBuf() public method

public UnpooledDirectByteBuf ( IByteBufAllocator alloc, int initialCapacity, int maxCapacity ) : System
alloc IByteBufAllocator
initialCapacity int
maxCapacity int
return System

Unwrap() public method

public Unwrap ( ) : IByteBuf
return IByteBuf

_GetByte() protected method

protected _GetByte ( int index ) : byte
index int
return byte

_GetInt() protected method

protected _GetInt ( int index ) : int
index int
return int

_GetLong() protected method

protected _GetLong ( int index ) : long
index int
return long

_GetShort() protected method

protected _GetShort ( int index ) : short
index int
return short

_SetByte() protected method

protected _SetByte ( int index, int value ) : IByteBuf
index int
value int
return IByteBuf

_SetInt() protected method

protected _SetInt ( int index, int value ) : IByteBuf
index int
value int
return IByteBuf

_SetLong() protected method

protected _SetLong ( int index, long value ) : IByteBuf
index int
value long
return IByteBuf

_SetShort() protected method

protected _SetShort ( int index, int value ) : IByteBuf
index int
value int
return IByteBuf