XxHash128.TryHash Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Attempts to compute the XXH128 hash of the provided source
data into the provided destination
using the optionally provided seed
.
public static bool TryHash (ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten, long seed = 0);
static member TryHash : ReadOnlySpan<byte> * Span<byte> * int * int64 -> bool
Public Shared Function TryHash (source As ReadOnlySpan(Of Byte), destination As Span(Of Byte), ByRef bytesWritten As Integer, Optional seed As Long = 0) As Boolean
Parameters
- source
- ReadOnlySpan<Byte>
The data to hash.
- bytesWritten
- Int32
When this method returns, contains the number of bytes written to destination
.
- seed
- Int64
The seed value for this hash computation. The default is zero.
Returns
true
if destination
is long enough to receive the computed hash value (16 bytes); otherwise, false
.
Applies to
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
.NET