Method | Description | |
---|---|---|
And ( this array, byte array2 ) : byte[] | ||
AndWith ( this array, byte array2 ) : void | ||
Clamp ( this i, byte min, byte max ) : int | ||
GetBits ( this i, int position, int length ) : byte | ||
GetBits ( this i, int position, int length ) : byte[] | ||
GetMask ( int position, int length ) : byte | ||
GetMaskArray ( int position, int length ) : byte[] | ||
IsInRange ( this i, byte min, byte max ) : bool | ||
Neg ( this array ) : byte[] | ||
NegWith ( this array ) : void | ||
Or ( this array, byte array2 ) : byte[] | ||
OrWith ( this array, byte array2 ) : void | ||
Shift ( this i, int amount ) : byte | ||
Shift ( this array, int toShift ) : byte[] |
Shifts bytes in array. Assumes bytes are in little endian order and low priority bits are first Could be made faster with using uints... |
|
ToHexString ( this i, string prefix ) : string | ||
ToString ( this i, int bytesPerWord ) : string | ||
WriteTo ( this array, int destination, byte source, int length ) : void | ||
Xor ( this array, byte array2 ) : byte[] | ||
XorWith ( this array, byte array2 ) : void |
Method | Description | |
---|---|---|
ShiftLeft ( this array, int toShift ) : byte[] | ||
ShiftRight ( this array, int toShift ) : byte[] |
public static And ( this array, byte array2 ) : byte[] | ||
array | this | |
array2 | byte | |
return | byte[] |
public static AndWith ( this array, byte array2 ) : void | ||
array | this | |
array2 | byte | |
return | void |
public static Clamp ( this i, byte min, byte max ) : int | ||
i | this | |
min | byte | |
max | byte | |
return | int |
public static GetBits ( this i, int position, int length ) : byte | ||
i | this | |
position | int | |
length | int | |
return | byte |
public static GetBits ( this i, int position, int length ) : byte[] | ||
i | this | |
position | int | |
length | int | |
return | byte[] |
public static GetMask ( int position, int length ) : byte | ||
position | int | |
length | int | |
return | byte |
public static GetMaskArray ( int position, int length ) : byte[] | ||
position | int | |
length | int | |
return | byte[] |
public static IsInRange ( this i, byte min, byte max ) : bool | ||
i | this | |
min | byte | |
max | byte | |
return | bool |
public static Or ( this array, byte array2 ) : byte[] | ||
array | this | |
array2 | byte | |
return | byte[] |
public static OrWith ( this array, byte array2 ) : void | ||
array | this | |
array2 | byte | |
return | void |
public static Shift ( this i, int amount ) : byte | ||
i | this | |
amount | int | |
return | byte |
public static Shift ( this array, int toShift ) : byte[] | ||
array | this | Array to shift |
toShift | int | Positive means left shifting, negative right |
return | byte[] |
public static ToHexString ( this i, string prefix ) : string | ||
i | this | |
prefix | string | |
return | string |
public static ToString ( this i, int bytesPerWord ) : string | ||
i | this | |
bytesPerWord | int | |
return | string |
public static WriteTo ( this array, int destination, byte source, int length ) : void | ||
array | this | |
destination | int | |
source | byte | |
length | int | |
return | void |
public static Xor ( this array, byte array2 ) : byte[] | ||
array | this | |
array2 | byte | |
return | byte[] |
public static XorWith ( this array, byte array2 ) : void | ||
array | this | |
array2 | byte | |
return | void |