C# Class Prism.IO.BinBufferStreamResource

Inheritance: BinBufferResource
Show file Open project: TerrariaPrismTeam/Prism

Public Methods

Method Description
AsByteArray ( ) : byte[]
AsStream ( ) : Stream
BinBufferStreamResource ( Stream s, bool copy = false, bool dispose = true ) : System
BinBufferStreamResource ( byte buffer ) : System
BinBufferStreamResource ( int initialCapacity ) : System
Clear ( bool wipeData = false ) : void
FromFile ( string path, bool canWrite = true ) : BinBufferStreamResource
Read ( byte data, int startIndex, int count ) : int
ReadByte ( ) : byte
ReadUnion ( int size ) : Union
Write ( Union v, int size ) : void
Write ( byte data, int startIndex, int count ) : void
WriteByte ( byte value ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Method Details

AsByteArray() public method

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

AsStream() public method

public AsStream ( ) : Stream
return Stream

BinBufferStreamResource() public method

public BinBufferStreamResource ( Stream s, bool copy = false, bool dispose = true ) : System
s Stream
copy bool
dispose bool
return System

BinBufferStreamResource() public method

public BinBufferStreamResource ( byte buffer ) : System
buffer byte
return System

BinBufferStreamResource() public method

public BinBufferStreamResource ( 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

FromFile() public static method

public static FromFile ( string path, bool canWrite = true ) : BinBufferStreamResource
path string
canWrite bool
return BinBufferStreamResource

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 size ) : Union
size int
return Union

Write() public method

public Write ( Union v, int size ) : void
v Union
size 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