C# 클래스 Nintenlord.Event_assembler.ByteExtensions

Extensions for byte and arrays of it
파일 보기 프로젝트 열기: Diegoisawesome/AwesomeMapEditor-old

공개 메소드들

메소드 설명
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 array, int toShift ) : byte[]

Shifts bytes in array. Assumes bytes are in big endian order and high 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

메소드 상세

And() 공개 정적인 메소드

public static And ( this array, byte array2 ) : byte[]
array this
array2 byte
리턴 byte[]

AndWith() 공개 정적인 메소드

public static AndWith ( this array, byte array2 ) : void
array this
array2 byte
리턴 void

Clamp() 공개 정적인 메소드

public static Clamp ( this i, byte min, byte max ) : int
i this
min byte
max byte
리턴 int

GetBits() 공개 정적인 메소드

public static GetBits ( this i, int position, int length ) : byte
i this
position int
length int
리턴 byte

GetBits() 공개 정적인 메소드

public static GetBits ( this i, int position, int length ) : byte[]
i this
position int
length int
리턴 byte[]

GetMask() 공개 정적인 메소드

public static GetMask ( int position, int length ) : byte
position int
length int
리턴 byte

GetMaskArray() 공개 정적인 메소드

public static GetMaskArray ( int position, int length ) : byte[]
position int
length int
리턴 byte[]

IsInRange() 공개 정적인 메소드

public static IsInRange ( this i, byte min, byte max ) : bool
i this
min byte
max byte
리턴 bool

Neg() 공개 정적인 메소드

public static Neg ( this array ) : byte[]
array this
리턴 byte[]

NegWith() 공개 정적인 메소드

public static NegWith ( this array ) : void
array this
리턴 void

Or() 공개 정적인 메소드

public static Or ( this array, byte array2 ) : byte[]
array this
array2 byte
리턴 byte[]

OrWith() 공개 정적인 메소드

public static OrWith ( this array, byte array2 ) : void
array this
array2 byte
리턴 void

Shift() 공개 정적인 메소드

Shifts bytes in array. Assumes bytes are in big endian order and high priority bits are first
Could be made faster with using uints...
public static Shift ( this array, int toShift ) : byte[]
array this Array to shift
toShift int Positive means right shifting, negative left
리턴 byte[]

ToHexString() 공개 정적인 메소드

public static ToHexString ( this i, string prefix ) : string
i this
prefix string
리턴 string

ToString() 공개 정적인 메소드

public static ToString ( this i, int bytesPerWord ) : string
i this
bytesPerWord int
리턴 string

WriteTo() 공개 정적인 메소드

public static WriteTo ( this array, int destination, byte source, int length ) : void
array this
destination int
source byte
length int
리턴 void

Xor() 공개 정적인 메소드

public static Xor ( this array, byte array2 ) : byte[]
array this
array2 byte
리턴 byte[]

XorWith() 공개 정적인 메소드

public static XorWith ( this array, byte array2 ) : void
array this
array2 byte
리턴 void