C# Class Wxv.Swg.Common.StreamExtensions

ファイルを表示 Open project: wverkley/Swg.Explorer

Public Methods

Method 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 method

public static CopyTo ( this source, Stream target ) : void
source this
target Stream
return void

ReadBytes() public static method

public static ReadBytes ( this stream ) : byte[]
stream this
return byte[]

ReadBytes() public static method

public static ReadBytes ( this stream, int count ) : byte[]
stream this
count int
return byte[]

ReadInt16() public static method

public static ReadInt16 ( this stream ) : Int16
stream this
return System.Int16

ReadInt32() public static method

public static ReadInt32 ( this stream ) : Int32
stream this
return System.Int32

ReadInt32BE() public static method

public static ReadInt32BE ( this stream ) : Int32
stream this
return System.Int32

ReadSingle() public static method

public static ReadSingle ( this stream ) : System.Single
stream this
return System.Single

ReadSingleBE() public static method

public static ReadSingleBE ( this stream ) : System.Single
stream this
return System.Single

ReadString() public static method

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

ReadString() public static method

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

ReadStringList() public static method

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