C# Class Prism.IO.BinBufferByteResource

Inheritance: BinBufferResource
Show file Open project: TerrariaPrismTeam/Prism

Public Methods

Method Description
AsByteArray ( ) : byte[]
AsStream ( ) : Stream
BinBufferByteResource ( ) : System
BinBufferByteResource ( byte data, bool copy = true, bool startAtEnd = false ) : System
BinBufferByteResource ( int initialCapacity ) : System
Clear ( bool wipeData = false ) : void
Read ( byte data, int startIndex, int count ) : int
ReadByte ( ) : byte
ReadUnion ( int s ) : Union
ResizeBuffer ( int requiredLength ) : void
Write ( Union v, int s ) : void
Write ( byte data, int startIndex, int count ) : void
WriteByte ( byte value ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
FastLog2 ( int n ) : int

Method Details

AsByteArray() public method

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

AsStream() public method

public AsStream ( ) : Stream
return Stream

BinBufferByteResource() public method

public BinBufferByteResource ( ) : System
return System

BinBufferByteResource() public method

public BinBufferByteResource ( byte data, bool copy = true, bool startAtEnd = false ) : System
data byte
copy bool
startAtEnd bool
return System

BinBufferByteResource() public method

public BinBufferByteResource ( int initialCapacity ) : System
initialCapacity int
return System

Clear() public method

public Clear ( bool wipeData = false ) : void
wipeData bool
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

Read() public method

public Read ( byte data, int startIndex, int count ) : int
data byte
startIndex int
count int
return int

ReadByte() public method

public ReadByte ( ) : byte
return byte

ReadUnion() public method

public ReadUnion ( int s ) : Union
s int
return Union

ResizeBuffer() public method

public ResizeBuffer ( int requiredLength ) : void
requiredLength int
return void

Write() public method

public Write ( Union v, int s ) : void
v Union
s int
return void

Write() public method

public Write ( byte data, int startIndex, int count ) : void
data byte
startIndex int
count int
return void

WriteByte() public method

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