-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Expand file tree
/
Copy pathSystem.IO.Hashing.cs
More file actions
195 lines (194 loc) · 13.5 KB
/
System.IO.Hashing.cs
File metadata and controls
195 lines (194 loc) · 13.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// ------------------------------------------------------------------------------
// Changes to this file must follow the https://aka.ms/api-review process.
// ------------------------------------------------------------------------------
namespace System.IO.Hashing
{
public sealed partial class Adler32 : System.IO.Hashing.NonCryptographicHashAlgorithm
{
public Adler32() : base (default(int)) { }
public override void Append(System.ReadOnlySpan<byte> source) { }
public System.IO.Hashing.Adler32 Clone() { throw null; }
[System.CLSCompliantAttribute(false)]
public uint GetCurrentHashAsUInt32() { throw null; }
protected override void GetCurrentHashCore(System.Span<byte> destination) { }
protected override void GetHashAndResetCore(System.Span<byte> destination) { }
public static byte[] Hash(byte[] source) { throw null; }
public static byte[] Hash(System.ReadOnlySpan<byte> source) { throw null; }
public static int Hash(System.ReadOnlySpan<byte> source, System.Span<byte> destination) { throw null; }
[System.CLSCompliantAttribute(false)]
public static uint HashToUInt32(System.ReadOnlySpan<byte> source) { throw null; }
public override void Reset() { }
public static bool TryHash(System.ReadOnlySpan<byte> source, System.Span<byte> destination, out int bytesWritten) { throw null; }
}
public sealed partial class Crc32 : System.IO.Hashing.NonCryptographicHashAlgorithm
{
public Crc32() : base (default(int)) { }
public Crc32(System.IO.Hashing.Crc32ParameterSet parameterSet) : base (default(int)) { }
public System.IO.Hashing.Crc32ParameterSet ParameterSet { get { throw null; } }
public override void Append(System.ReadOnlySpan<byte> source) { }
public System.IO.Hashing.Crc32 Clone() { throw null; }
[System.CLSCompliantAttribute(false)]
public uint GetCurrentHashAsUInt32() { throw null; }
protected override void GetCurrentHashCore(System.Span<byte> destination) { }
protected override void GetHashAndResetCore(System.Span<byte> destination) { }
public static byte[] Hash(byte[] source) { throw null; }
public static byte[] Hash(System.IO.Hashing.Crc32ParameterSet parameterSet, byte[] source) { throw null; }
public static byte[] Hash(System.IO.Hashing.Crc32ParameterSet parameterSet, System.ReadOnlySpan<byte> source) { throw null; }
public static int Hash(System.IO.Hashing.Crc32ParameterSet parameterSet, System.ReadOnlySpan<byte> source, System.Span<byte> destination) { throw null; }
public static byte[] Hash(System.ReadOnlySpan<byte> source) { throw null; }
public static int Hash(System.ReadOnlySpan<byte> source, System.Span<byte> destination) { throw null; }
[System.CLSCompliantAttribute(false)]
public static uint HashToUInt32(System.IO.Hashing.Crc32ParameterSet parameterSet, System.ReadOnlySpan<byte> source) { throw null; }
[System.CLSCompliantAttribute(false)]
public static uint HashToUInt32(System.ReadOnlySpan<byte> source) { throw null; }
public override void Reset() { }
public static bool TryHash(System.IO.Hashing.Crc32ParameterSet parameterSet, System.ReadOnlySpan<byte> source, System.Span<byte> destination, out int bytesWritten) { throw null; }
public static bool TryHash(System.ReadOnlySpan<byte> source, System.Span<byte> destination, out int bytesWritten) { throw null; }
}
public partial class Crc32ParameterSet
{
internal Crc32ParameterSet() { }
public static System.IO.Hashing.Crc32ParameterSet Crc32 { get { throw null; } }
public static System.IO.Hashing.Crc32ParameterSet Crc32C { get { throw null; } }
[System.CLSCompliantAttribute(false)]
public uint FinalXorValue { get { throw null; } }
[System.CLSCompliantAttribute(false)]
public uint InitialValue { get { throw null; } }
[System.CLSCompliantAttribute(false)]
public uint Polynomial { get { throw null; } }
public bool ReflectValues { get { throw null; } }
[System.CLSCompliantAttribute(false)]
public static System.IO.Hashing.Crc32ParameterSet Create(uint polynomial, uint initialValue, uint finalXorValue, bool reflectValues) { throw null; }
}
public sealed partial class Crc64 : System.IO.Hashing.NonCryptographicHashAlgorithm
{
public Crc64() : base (default(int)) { }
public Crc64(System.IO.Hashing.Crc64ParameterSet parameterSet) : base (default(int)) { }
public System.IO.Hashing.Crc64ParameterSet ParameterSet { get { throw null; } }
public override void Append(System.ReadOnlySpan<byte> source) { }
public System.IO.Hashing.Crc64 Clone() { throw null; }
[System.CLSCompliantAttribute(false)]
public ulong GetCurrentHashAsUInt64() { throw null; }
protected override void GetCurrentHashCore(System.Span<byte> destination) { }
protected override void GetHashAndResetCore(System.Span<byte> destination) { }
public static byte[] Hash(byte[] source) { throw null; }
public static byte[] Hash(System.IO.Hashing.Crc64ParameterSet parameterSet, byte[] source) { throw null; }
public static byte[] Hash(System.IO.Hashing.Crc64ParameterSet parameterSet, System.ReadOnlySpan<byte> source) { throw null; }
public static int Hash(System.IO.Hashing.Crc64ParameterSet parameterSet, System.ReadOnlySpan<byte> source, System.Span<byte> destination) { throw null; }
public static byte[] Hash(System.ReadOnlySpan<byte> source) { throw null; }
public static int Hash(System.ReadOnlySpan<byte> source, System.Span<byte> destination) { throw null; }
[System.CLSCompliantAttribute(false)]
public static ulong HashToUInt64(System.IO.Hashing.Crc64ParameterSet parameterSet, System.ReadOnlySpan<byte> source) { throw null; }
[System.CLSCompliantAttribute(false)]
public static ulong HashToUInt64(System.ReadOnlySpan<byte> source) { throw null; }
public override void Reset() { }
public static bool TryHash(System.IO.Hashing.Crc64ParameterSet parameterSet, System.ReadOnlySpan<byte> source, System.Span<byte> destination, out int bytesWritten) { throw null; }
public static bool TryHash(System.ReadOnlySpan<byte> source, System.Span<byte> destination, out int bytesWritten) { throw null; }
}
public partial class Crc64ParameterSet
{
internal Crc64ParameterSet() { }
public static System.IO.Hashing.Crc64ParameterSet Crc64 { get { throw null; } }
[System.CLSCompliantAttribute(false)]
public ulong FinalXorValue { get { throw null; } }
[System.CLSCompliantAttribute(false)]
public ulong InitialValue { get { throw null; } }
public static System.IO.Hashing.Crc64ParameterSet Nvme { get { throw null; } }
[System.CLSCompliantAttribute(false)]
public ulong Polynomial { get { throw null; } }
public bool ReflectValues { get { throw null; } }
[System.CLSCompliantAttribute(false)]
public static System.IO.Hashing.Crc64ParameterSet Create(ulong polynomial, ulong initialValue, ulong finalXorValue, bool reflectValues) { throw null; }
}
public abstract partial class NonCryptographicHashAlgorithm
{
protected NonCryptographicHashAlgorithm(int hashLengthInBytes) { }
public int HashLengthInBytes { get { throw null; } }
public void Append(byte[] source) { }
public void Append(System.IO.Stream stream) { }
public abstract void Append(System.ReadOnlySpan<byte> source);
public System.Threading.Tasks.Task AppendAsync(System.IO.Stream stream, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public byte[] GetCurrentHash() { throw null; }
public int GetCurrentHash(System.Span<byte> destination) { throw null; }
protected abstract void GetCurrentHashCore(System.Span<byte> destination);
public byte[] GetHashAndReset() { throw null; }
public int GetHashAndReset(System.Span<byte> destination) { throw null; }
protected virtual void GetHashAndResetCore(System.Span<byte> destination) { }
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.ObsoleteAttribute("Use GetCurrentHash() to retrieve the computed hash code.", true)]
public override int GetHashCode() { throw null; }
public abstract void Reset();
public bool TryGetCurrentHash(System.Span<byte> destination, out int bytesWritten) { throw null; }
public bool TryGetHashAndReset(System.Span<byte> destination, out int bytesWritten) { throw null; }
}
public sealed partial class XxHash128 : System.IO.Hashing.NonCryptographicHashAlgorithm
{
public XxHash128() : base (default(int)) { }
public XxHash128(long seed) : base (default(int)) { }
public override void Append(System.ReadOnlySpan<byte> source) { }
public System.IO.Hashing.XxHash128 Clone() { throw null; }
protected override void GetCurrentHashCore(System.Span<byte> destination) { }
public static byte[] Hash(byte[] source) { throw null; }
public static byte[] Hash(byte[] source, long seed) { throw null; }
public static byte[] Hash(System.ReadOnlySpan<byte> source, long seed = (long)0) { throw null; }
public static int Hash(System.ReadOnlySpan<byte> source, System.Span<byte> destination, long seed = (long)0) { throw null; }
public override void Reset() { }
public static bool TryHash(System.ReadOnlySpan<byte> source, System.Span<byte> destination, out int bytesWritten, long seed = (long)0) { throw null; }
}
public sealed partial class XxHash3 : System.IO.Hashing.NonCryptographicHashAlgorithm
{
public XxHash3() : base (default(int)) { }
public XxHash3(long seed) : base (default(int)) { }
public override void Append(System.ReadOnlySpan<byte> source) { }
public System.IO.Hashing.XxHash3 Clone() { throw null; }
[System.CLSCompliantAttribute(false)]
public ulong GetCurrentHashAsUInt64() { throw null; }
protected override void GetCurrentHashCore(System.Span<byte> destination) { }
public static byte[] Hash(byte[] source) { throw null; }
public static byte[] Hash(byte[] source, long seed) { throw null; }
public static byte[] Hash(System.ReadOnlySpan<byte> source, long seed = (long)0) { throw null; }
public static int Hash(System.ReadOnlySpan<byte> source, System.Span<byte> destination, long seed = (long)0) { throw null; }
[System.CLSCompliantAttribute(false)]
public static ulong HashToUInt64(System.ReadOnlySpan<byte> source, long seed = (long)0) { throw null; }
public override void Reset() { }
public static bool TryHash(System.ReadOnlySpan<byte> source, System.Span<byte> destination, out int bytesWritten, long seed = (long)0) { throw null; }
}
public sealed partial class XxHash32 : System.IO.Hashing.NonCryptographicHashAlgorithm
{
public XxHash32() : base (default(int)) { }
public XxHash32(int seed) : base (default(int)) { }
public override void Append(System.ReadOnlySpan<byte> source) { }
public System.IO.Hashing.XxHash32 Clone() { throw null; }
[System.CLSCompliantAttribute(false)]
public uint GetCurrentHashAsUInt32() { throw null; }
protected override void GetCurrentHashCore(System.Span<byte> destination) { }
public static byte[] Hash(byte[] source) { throw null; }
public static byte[] Hash(byte[] source, int seed) { throw null; }
public static byte[] Hash(System.ReadOnlySpan<byte> source, int seed = 0) { throw null; }
public static int Hash(System.ReadOnlySpan<byte> source, System.Span<byte> destination, int seed = 0) { throw null; }
[System.CLSCompliantAttribute(false)]
public static uint HashToUInt32(System.ReadOnlySpan<byte> source, int seed = 0) { throw null; }
public override void Reset() { }
public static bool TryHash(System.ReadOnlySpan<byte> source, System.Span<byte> destination, out int bytesWritten, int seed = 0) { throw null; }
}
public sealed partial class XxHash64 : System.IO.Hashing.NonCryptographicHashAlgorithm
{
public XxHash64() : base (default(int)) { }
public XxHash64(long seed) : base (default(int)) { }
public override void Append(System.ReadOnlySpan<byte> source) { }
public System.IO.Hashing.XxHash64 Clone() { throw null; }
[System.CLSCompliantAttribute(false)]
public ulong GetCurrentHashAsUInt64() { throw null; }
protected override void GetCurrentHashCore(System.Span<byte> destination) { }
public static byte[] Hash(byte[] source) { throw null; }
public static byte[] Hash(byte[] source, long seed) { throw null; }
public static byte[] Hash(System.ReadOnlySpan<byte> source, long seed = (long)0) { throw null; }
public static int Hash(System.ReadOnlySpan<byte> source, System.Span<byte> destination, long seed = (long)0) { throw null; }
[System.CLSCompliantAttribute(false)]
public static ulong HashToUInt64(System.ReadOnlySpan<byte> source, long seed = (long)0) { throw null; }
public override void Reset() { }
public static bool TryHash(System.ReadOnlySpan<byte> source, System.Span<byte> destination, out int bytesWritten, long seed = (long)0) { throw null; }
}
}