C# Class Wxv.Swg.Common.ByteArrayExtensions

Mostra file Open project: wverkley/Swg.Explorer

Public Methods

Method Description
IsText ( this data ) : System.Boolean
ReadBytes ( this data, int count, int startIndex ) : byte[]
ReadInt16 ( this data, int startIndex ) : Int16
ReadInt32 ( this data, int startIndex ) : Int32
ReadInt32BE ( this data, int startIndex ) : int
ReadSingle ( this data, int startIndex ) : System.Single
ReadSingleBE ( this data, int startIndex ) : System.Single
ReadString ( this data, int startIndex, Encoding encoding = null, bool trim = true ) : string
ReadStringList ( this data, int startIndex, Encoding encoding = null, bool trim = true ) : string[]

Private Methods

Method Description
ReadStringInternal ( this data, int &startIndex, Encoding encoding, bool trim ) : string

Method Details

IsText() public static method

public static IsText ( this data ) : System.Boolean
data this
return System.Boolean

ReadBytes() public static method

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

ReadInt16() public static method

public static ReadInt16 ( this data, int startIndex ) : Int16
data this
startIndex int
return System.Int16

ReadInt32() public static method

public static ReadInt32 ( this data, int startIndex ) : Int32
data this
startIndex int
return System.Int32

ReadInt32BE() public static method

public static ReadInt32BE ( this data, int startIndex ) : int
data this
startIndex int
return int

ReadSingle() public static method

public static ReadSingle ( this data, int startIndex ) : System.Single
data this
startIndex int
return System.Single

ReadSingleBE() public static method

public static ReadSingleBE ( this data, int startIndex ) : System.Single
data this
startIndex int
return System.Single

ReadString() public static method

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

ReadStringList() public static method

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