C# Class FactomAPI.Bytes

Mostra file Open project: CryptidID/FactomDotNet

Public Methods

Method Description
CheckEndian ( byte bytes ) : byte[]

Will correct a little endian byte[]

Equality ( byte a1, byte b1 ) : bool

Checks if two byte arrays are equal

StartsWith ( byte haystack, byte needle ) : bool

Checks if a byte sequence begins with another byte sequence

Method Details

CheckEndian() public static method

Will correct a little endian byte[]
public static CheckEndian ( byte bytes ) : byte[]
bytes byte
return byte[]

Equality() public static method

Checks if two byte arrays are equal
public static Equality ( byte a1, byte b1 ) : bool
a1 byte Byte[] to be compared
b1 byte Byte[] to be compared
return bool

StartsWith() public static method

Checks if a byte sequence begins with another byte sequence
public static StartsWith ( byte haystack, byte needle ) : bool
haystack byte The sequence to check
needle byte The sequence we want to find in the haystack
return bool