private UInt64 ParseUInt64(byte[] data, ref int index, bool isBigEndian = false) { byte[] bytes = GetBytes(data, ref index, sizeof(UInt64)); if(isBigEndian) { Array.Reverse(bytes, 0, sizeof(UInt64)); } return BitConverter.ToUInt64(bytes, 0); }