public static bool QuickCheck(byte[] result, int totalLength, string begin) { return(result.Length == totalLength && ConversionHelpers.ToUTF8String(ByteArrayHelpers.CopyPartOf(result, 0, begin.Length)) == begin); }
public static byte[] ToBigEndianByteArray(uint[] raw) { return(ByteArrayHelpers.Concatenate(raw.Select(i => ToBigEndian(i)).ToArray())); }