C# Class AlphaTab.IO.ByteBuffer

Inheritance: IWriteable, IReadable
Show file Open project: CoderLine/alphaTab Class Usage Examples

Public Methods

Method Description
Empty ( ) : ByteBuffer
FromBuffer ( byte data ) : ByteBuffer
GetBuffer ( ) : byte[]
Read ( byte buffer, int offset, int count ) : int
ReadAll ( ) : byte[]
ReadByte ( ) : int
Reset ( ) : void
Skip ( int offset ) : void
ToArray ( ) : byte[]
WithCapactiy ( int capacity ) : ByteBuffer
Write ( byte buffer, int offset, int count ) : void
WriteByte ( byte value ) : void

Private Methods

Method Description
ByteBuffer ( ) : System
EnsureCapacity ( int value ) : void
SetCapacity ( int value ) : void

Method Details

Empty() public static method

public static Empty ( ) : ByteBuffer
return ByteBuffer

FromBuffer() public static method

public static FromBuffer ( byte data ) : ByteBuffer
data byte
return ByteBuffer

GetBuffer() public method

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

Read() public method

public Read ( byte buffer, int offset, int count ) : int
buffer byte
offset int
count int
return int

ReadAll() public method

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

ReadByte() public method

public ReadByte ( ) : int
return int

Reset() public method

public Reset ( ) : void
return void

Skip() public method

public Skip ( int offset ) : void
offset int
return void

ToArray() public method

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

WithCapactiy() public static method

public static WithCapactiy ( int capacity ) : ByteBuffer
capacity int
return ByteBuffer

Write() public method

public Write ( byte buffer, int offset, int count ) : void
buffer byte
offset int
count int
return void

WriteByte() public method

public WriteByte ( byte value ) : void
value byte
return void