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
public class Reader : IDisposable | |
{ | |
/// <inheritdoc /> | |
/// <summary> | |
/// Initializes a new instance of the Reader class based on a specified path name, and defaulting to UTF-8 encoding. | |
/// </summary> | |
public Reader(string path) : this(path, new UTF8Encoding(false, true)) | |
{ | |
} | |
/// <summary> |
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
[Serializable] | |
public class BigArray<T> : IEnumerable<T>, IDisposable | |
{ | |
private const int ShiftCount = 19; | |
private const ulong Granularity = 1 << ShiftCount; | |
private readonly ulong _capacityHold; | |
private readonly GetObjectSize _gos = new GetObjectSize(); | |
private T[][] _arrays; | |
private bool _disposed; | |
private ulong _itemSize; |
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
/// <summary> | |
/// No collisions with 20M random byte arrays. 32x slower than FNV1a64. | |
/// https://en.wikipedia.org/wiki/Fowler%E2%80%93Noll%E2%80%93Vo_hash_function | |
/// </summary> | |
public class FNV1a128 : HashAlgorithm | |
{ | |
private readonly BigInteger _K = "309485009821345068724781371".NewBigInteger10(); | |
private BigInteger _hash; | |
private readonly BigInteger Seed = "144066263297769815596495629667062367629".NewBigInteger10(); | |
public FNV1a128() |
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
public class Murmur3 : HashAlgorithm | |
{ | |
private ulong _h1; | |
private ulong _h2; | |
private ulong _length; | |
public Result Res; | |
public Result Seed; | |
public Murmur3() : this(new Result {H1 = 0, H2 = 0}) | |
{ | |
} |
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
public class DiskInfoStruct | |
{ | |
public string BytesPerSector; | |
public string Capabilities; | |
public string CapabilityDescriptions; | |
public string Caption; | |
public string ConfigManagerErrorCode; | |
public string ConfigManagerUserConfig; | |
public string Description; | |
public string DeviceID; |
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
public class DriveInfoStruct | |
{ | |
public string Access; | |
public string Caption; | |
public string Compressed; | |
public string Description; | |
public string DevicePath; | |
public List<DiskInfoStruct> DiskInformations = new List<DiskInfoStruct>(); | |
public string DiskNumbers; | |
public string Drive; |
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
public struct SData | |
{ | |
public string Attribute; | |
public int RAWValue; | |
public string RAWValueS; | |
public int Value; | |
} | |
public static class SmartInformation | |
{ |
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
/// <summary> | |
/// var ff = new FindFile(); ff.Path = @"c:\"; (var _fd in ff) {var filepath = _fd.cFileName;} | |
/// </summary> | |
public class FindFile : IEnumerable<WIN32_FIND_DATA> | |
{ | |
public string Path { get; set; } | |
IEnumerator IEnumerable.GetEnumerator() | |
{ | |
return new Enumerator(Path); |
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
public class SetupDi | |
{ | |
/// <summary> | |
/// Class Names (Incomplete??) | |
/// </summary> | |
public string[] ClassNames = | |
{ | |
"AudioEndpoint", | |
"CDROM", | |
"Computer", |
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
/// <summary> | |
/// Circular Progress bar with percentage | |
/// </summary> | |
public class CircularProgressBar : Control | |
{ | |
public enum graphtypes | |
{ | |
Standard, | |
Spin | |
} |