C# Class Prism.IO.BinBufferStreamResource

Inheritance: BinBufferResource
Afficher le fichier Open project: TerrariaPrismTeam/Prism

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Method Details

AsByteArray() public méthode

public AsByteArray ( ) : byte[]
Résultat byte[]

AsStream() public méthode

public AsStream ( ) : Stream
Résultat Stream

BinBufferStreamResource() public méthode

public BinBufferStreamResource ( Stream s, bool copy = false, bool dispose = true ) : System
s Stream
copy bool
dispose bool
Résultat System

BinBufferStreamResource() public méthode

public BinBufferStreamResource ( byte buffer ) : System
buffer byte
Résultat System

BinBufferStreamResource() public méthode

public BinBufferStreamResource ( int initialCapacity ) : System
initialCapacity int
Résultat System

Clear() public méthode

public Clear ( bool wipeData = false ) : void
wipeData bool
Résultat void

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

FromFile() public static méthode

public static FromFile ( string path, bool canWrite = true ) : BinBufferStreamResource
path string
canWrite bool
Résultat BinBufferStreamResource

Read() public méthode

public Read ( byte data, int startIndex, int count ) : int
data byte
startIndex int
count int
Résultat int

ReadByte() public méthode

public ReadByte ( ) : byte
Résultat byte

ReadUnion() public méthode

public ReadUnion ( int size ) : Union
size int
Résultat Union

Write() public méthode

public Write ( Union v, int size ) : void
v Union
size int
Résultat void

Write() public méthode

public Write ( byte data, int startIndex, int count ) : void
data byte
startIndex int
count int
Résultat void

WriteByte() public méthode

public WriteByte ( byte value ) : void
value byte
Résultat void