C# Class Wxv.Swg.Common.StreamExtensions

Afficher le fichier Open project: wverkley/Swg.Explorer

Méthodes publiques

Méthode Description
CopyTo ( this source, Stream target ) : void
ReadBytes ( this stream ) : byte[]
ReadBytes ( this stream, int count ) : byte[]
ReadInt16 ( this stream ) : Int16
ReadInt32 ( this stream ) : Int32
ReadInt32BE ( this stream ) : Int32
ReadSingle ( this stream ) : System.Single
ReadSingleBE ( this stream ) : System.Single
ReadString ( this stream, Encoding encoding = null, bool trim = true ) : string
ReadString ( this stream, int length, Encoding encoding = null, bool trim = true ) : string
ReadStringList ( this stream, Encoding encoding = null, bool trim = true ) : string[]

Method Details

CopyTo() public static méthode

public static CopyTo ( this source, Stream target ) : void
source this
target Stream
Résultat void

ReadBytes() public static méthode

public static ReadBytes ( this stream ) : byte[]
stream this
Résultat byte[]

ReadBytes() public static méthode

public static ReadBytes ( this stream, int count ) : byte[]
stream this
count int
Résultat byte[]

ReadInt16() public static méthode

public static ReadInt16 ( this stream ) : Int16
stream this
Résultat System.Int16

ReadInt32() public static méthode

public static ReadInt32 ( this stream ) : Int32
stream this
Résultat System.Int32

ReadInt32BE() public static méthode

public static ReadInt32BE ( this stream ) : Int32
stream this
Résultat System.Int32

ReadSingle() public static méthode

public static ReadSingle ( this stream ) : System.Single
stream this
Résultat System.Single

ReadSingleBE() public static méthode

public static ReadSingleBE ( this stream ) : System.Single
stream this
Résultat System.Single

ReadString() public static méthode

public static ReadString ( this stream, Encoding encoding = null, bool trim = true ) : string
stream this
encoding System.Text.Encoding
trim bool
Résultat string

ReadString() public static méthode

public static ReadString ( this stream, int length, Encoding encoding = null, bool trim = true ) : string
stream this
length int
encoding System.Text.Encoding
trim bool
Résultat string

ReadStringList() public static méthode

public static ReadStringList ( this stream, Encoding encoding = null, bool trim = true ) : string[]
stream this
encoding System.Text.Encoding
trim bool
Résultat string[]