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