This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static class A | |
| { | |
| public static void a<T>(this T[] l, in T t) where T : struct | |
| { | |
| } | |
| } | |
| public static class B |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace Zayats.Unity.View | |
| { | |
| using UnityEngine; | |
| using UnityEngine.UI; | |
| public static class ScrollHelper | |
| { | |
| public static void ScrollChildIntoView(this ScrollRect scrollRect, int childIndex) | |
| { | |
| ScrollChildIntoView(scrollRect, (RectTransform) scrollRect.content.GetChild(childIndex)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Diagnostics; | |
| using System.Text; | |
| public class NotThreadSafeHelper | |
| { | |
| private static readonly StringBuilder _StringBuilderCached = new(); | |
| // Not thread safe! Reuses a static buffer. | |
| public static string ToPascalCase(ReadOnlySpan<char> input) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module md4; | |
| struct MD4Context | |
| { | |
| uint[4] hash; | |
| uint[16] block; | |
| ulong byteCount; | |
| } | |
| ubyte[MD4Context.hash.sizeof] md4Of(scope const(ubyte)[] input) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| long inverse_modulo(long a, long n) | |
| { | |
| auto t0 = 0L; | |
| auto t1 = 1L; | |
| auto r0 = n; | |
| auto r1 = a; | |
| while (r1 != 0) | |
| { | |
| auto q = r0 / r1; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module bitmap; | |
| struct Index | |
| { | |
| size_t numberIndex; | |
| size_t bitIndex; | |
| } | |
| int getMask(TNumber)(Index index) | |
| { |
NewerOlder