This file contains 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
from typing import ( | |
Sequence, | |
Iterable, | |
Callable | |
) | |
type Predicate[ T ] = Callable[ [ T ] , bool ] | |
type Converter[ TIn , TOut ] = Callable[ [ TIn ] , TOut ] | |
class QueryException( Exception ): |
This file contains 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
private static uint Adler32(string str) | |
{ | |
const int mod = 65521; | |
uint a = 1, b = 0; | |
foreach (char c in str) { | |
a = (a + c) % mod; | |
b = (b + a) % mod; | |
} | |
return (b << 16) | a; | |
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.