C# Class Sharpen.ByteBuffer

Show file Open project: fantasydr/krkr-cs Class Usage Examples

Public Methods

Method Description
Allocate ( int size ) : ByteBuffer
AllocateDirect ( int size ) : ByteBuffer
Array ( ) : byte[]
ArrayOffset ( ) : int
AsIntBuffer ( ) : IntBuffer
AsLongBuffer ( ) : LongBuffer
AsShortBuffer ( ) : ShortBuffer
ByteBuffer ( ) : System
Capacity ( ) : int
Clear ( ) : void
Duplicate ( ) : ByteBuffer
Flip ( ) : void
Get ( ) : byte
Get ( int i ) : byte
Get ( byte data ) : void
Get ( byte data, int start, int len ) : void
GetInt ( ) : int
GetShort ( ) : short
HasArray ( ) : bool
Limit ( ) : int
Limit ( int newLimit ) : void
Mark ( ) : void
NativeOrder ( ) : ByteOrder
Order ( ByteOrder order ) : void
Position ( ) : int
Position ( int pos ) : void
Put ( ByteBuffer buf ) : void
Put ( byte data ) : void
Put ( byte data, int start, int len ) : void
PutChar ( char ch ) : void
PutInt ( int i ) : void
PutLong ( long i ) : void
PutShort ( short i ) : void
Remaining ( ) : int
Reset ( ) : void
Slice ( ) : ByteBuffer
Wrap ( byte buf ) : ByteBuffer
Wrap ( byte buf, int start, int len ) : ByteBuffer

Protected Methods

Method Description
ByteBuffer ( byte buf, int start, int len ) : System

Private Methods

Method Description
CheckGetLimit ( int inc ) : void
CheckPutLimit ( int inc ) : void

Method Details

Allocate() public static method

public static Allocate ( int size ) : ByteBuffer
size int
return ByteBuffer

AllocateDirect() public static method

public static AllocateDirect ( int size ) : ByteBuffer
size int
return ByteBuffer

Array() public method

public Array ( ) : byte[]
return byte[]

ArrayOffset() public method

public ArrayOffset ( ) : int
return int

AsIntBuffer() public method

public AsIntBuffer ( ) : IntBuffer
return IntBuffer

AsLongBuffer() public method

public AsLongBuffer ( ) : LongBuffer
return LongBuffer

AsShortBuffer() public method

public AsShortBuffer ( ) : ShortBuffer
return ShortBuffer

ByteBuffer() public method

public ByteBuffer ( ) : System
return System

ByteBuffer() protected method

protected ByteBuffer ( byte buf, int start, int len ) : System
buf byte
start int
len int
return System

Capacity() public method

public Capacity ( ) : int
return int

Clear() public method

public Clear ( ) : void
return void

Duplicate() public method

public Duplicate ( ) : ByteBuffer
return ByteBuffer

Flip() public method

public Flip ( ) : void
return void

Get() public method

public Get ( ) : byte
return byte

Get() public method

public Get ( int i ) : byte
i int
return byte

Get() public method

public Get ( byte data ) : void
data byte
return void

Get() public method

public Get ( byte data, int start, int len ) : void
data byte
start int
len int
return void

GetInt() public method

public GetInt ( ) : int
return int

GetShort() public method

public GetShort ( ) : short
return short

HasArray() public method

public HasArray ( ) : bool
return bool

Limit() public method

public Limit ( ) : int
return int

Limit() public method

public Limit ( int newLimit ) : void
newLimit int
return void

Mark() public method

public Mark ( ) : void
return void

NativeOrder() public static method

public static NativeOrder ( ) : ByteOrder
return ByteOrder

Order() public method

public Order ( ByteOrder order ) : void
order ByteOrder
return void

Position() public method

public Position ( ) : int
return int

Position() public method

public Position ( int pos ) : void
pos int
return void

Put() public method

public Put ( ByteBuffer buf ) : void
buf ByteBuffer
return void

Put() public method

public Put ( byte data ) : void
data byte
return void

Put() public method

public Put ( byte data, int start, int len ) : void
data byte
start int
len int
return void

PutChar() public method

public PutChar ( char ch ) : void
ch char
return void

PutInt() public method

public PutInt ( int i ) : void
i int
return void

PutLong() public method

public PutLong ( long i ) : void
i long
return void

PutShort() public method

public PutShort ( short i ) : void
i short
return void

Remaining() public method

public Remaining ( ) : int
return int

Reset() public method

public Reset ( ) : void
return void

Slice() public method

public Slice ( ) : ByteBuffer
return ByteBuffer

Wrap() public static method

public static Wrap ( byte buf ) : ByteBuffer
buf byte
return ByteBuffer

Wrap() public static method

public static Wrap ( byte buf, int start, int len ) : ByteBuffer
buf byte
start int
len int
return ByteBuffer