private static byte[] GetBytesFromUlong(ulong value, bool isBigEndian) { byte[] resultData = BitConverter.GetBytes(value); ReverseByFlag(resultData, isBigEndian); return resultData; }