Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ TryGetCurrentHash()

bool System.Security.Cryptography.IncrementalHash.TryGetCurrentHash ( Span< byte > destination,
out int bytesWritten )
inline

Definition at line 156 of file IncrementalHash.cs.

157 {
158 if (_disposed)
159 {
160 throw new ObjectDisposedException("IncrementalHash");
161 }
162 if (destination.Length < HashLengthInBytes)
163 {
164 bytesWritten = 0;
165 return false;
166 }
167 bytesWritten = GetCurrentHashCore(destination);
168 return true;
169 }
int GetCurrentHashCore(Span< byte > destination)

References System.Security.Cryptography.IncrementalHash._disposed, System.destination, System.Security.Cryptography.IncrementalHash.GetCurrentHashCore(), and System.Security.Cryptography.IncrementalHash.HashLengthInBytes.