C# Class imBMW.Tools.ArrayHelpers

Exibir arquivo Open project: toxsedyshev/imBMW

Public Methods

Method Description
Combine ( this array ) : byte[]
Compare ( this array1 ) : bool
Compare ( this array1, int anyMaskIndexes ) : bool
Contains ( this array, string s ) : bool
IndexOf ( this array, byte b, int skip, int arrayLength = -1 ) : int
PadRight ( this data, byte b, int count ) : byte[]
ParseFloat ( this data, float &result, int offset, int length ) : bool
ParseInt ( this data, int &result, int offset, int length ) : bool
PasteASCII ( this data, string s, int offset, int limit, TextAlign align = TextAlign.Left ) : void
Skip ( this array, int skip ) : byte[]
SkipAndTake ( this array, int skip, int take, bool extend = false ) : byte[]
StartsWith ( this array1 ) : bool
ToHex ( this data ) : String
ToHex ( this data, Char spacer ) : String
ToHex ( this data, String spacer ) : String

Private Methods

Method Description
Compare ( this array1, bool startsWith ) : bool
Compare ( this array1, bool startsWith, int anyMaskIndexes ) : bool

Method Details

Combine() public static method

public static Combine ( this array ) : byte[]
array this
return byte[]

Compare() public static method

public static Compare ( this array1 ) : bool
array1 this
return bool

Compare() public static method

public static Compare ( this array1, int anyMaskIndexes ) : bool
array1 this
anyMaskIndexes int
return bool

Contains() public static method

public static Contains ( this array, string s ) : bool
array this
s string
return bool

IndexOf() public static method

public static IndexOf ( this array, byte b, int skip, int arrayLength = -1 ) : int
array this
b byte
skip int
arrayLength int
return int

PadRight() public static method

public static PadRight ( this data, byte b, int count ) : byte[]
data this
b byte
count int
return byte[]

ParseFloat() public static method

public static ParseFloat ( this data, float &result, int offset, int length ) : bool
data this
result float
offset int
length int
return bool

ParseInt() public static method

public static ParseInt ( this data, int &result, int offset, int length ) : bool
data this
result int
offset int
length int
return bool

PasteASCII() public static method

public static PasteASCII ( this data, string s, int offset, int limit, TextAlign align = TextAlign.Left ) : void
data this
s string
offset int
limit int
align TextAlign
return void

Skip() public static method

public static Skip ( this array, int skip ) : byte[]
array this
skip int
return byte[]

SkipAndTake() public static method

public static SkipAndTake ( this array, int skip, int take, bool extend = false ) : byte[]
array this
skip int
take int
extend bool
return byte[]

StartsWith() public static method

public static StartsWith ( this array1 ) : bool
array1 this
return bool

ToHex() public static method

public static ToHex ( this data ) : String
data this
return String

ToHex() public static method

public static ToHex ( this data, Char spacer ) : String
data this
spacer Char
return String

ToHex() public static method

public static ToHex ( this data, String spacer ) : String
data this
spacer String
return String