encoded Data = (encoded Data | bit Shift Buffer)
Asked
Active
Viewed 67 times
-4
-
the ** is not important, j = j+1 == key.Length ? 0 : j + 1; – rex_yoy Nov 24 '20 at 19:16
-
[Wikipedia](https://en.wikipedia.org/wiki/%3F%3A#C#) for the rescue! it's basically an inline-`if`. – Franz Gleichmann Nov 24 '20 at 19:17
1 Answers
3
This line:
j = j + 1 == key.Length ? 0 : j + 1;
could also be written as:
if ((j+1) == key.Length)
j = 0;
else
j = j+1;

SQL Police
- 4,127
- 1
- 25
- 54
-
1
-
1
-
@Codexer ... wow, I just realized that I / you can edit other peoples answers. Scary, but cool. – JesseChunn Nov 24 '20 at 19:38
-
2@JesseChunn: with reputation comes power. Each time you hit a specific reputation level you get another quantum of power. Codexer has nearly 7k of reputation, so there's lots of things he can do. Folks with lots of reputation are trusted enough that the site knows if they edit a question or answer, then they aren't messing with the intent of the text, just making it better. – Flydog57 Nov 24 '20 at 19:53