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 SqlUtilities | |
{ | |
readonly static SqlDataTypeOption[] unsupportedTypes = new[] | |
{ | |
SqlDataTypeOption.Sql_Variant, | |
SqlDataTypeOption.Timestamp, | |
SqlDataTypeOption.Rowversion, | |
}; | |
public static string GetDotnetType(this SqlDataTypeOption sqlDataType, bool isNullable = false) |
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 Lz77 | |
{ | |
private const int RingBufferSize = 4096; | |
private const int UpperMatchLength = 18; | |
private const int LowerMatchLength = 2; | |
private const int None = RingBufferSize; | |
private static readonly int[] Parent = new int[RingBufferSize + 1]; | |
private static readonly int[] LeftChild = new int[RingBufferSize + 1]; | |
private static readonly int[] RightChild = new int[RingBufferSize + 257]; | |
private static readonly ushort[] Buffer = new ushort[RingBufferSize + UpperMatchLength - 1]; |