Crc64.TryHash 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| TryHash(ReadOnlySpan<Byte>, Span<Byte>, Int32) |
嘗試計算所提供資料的CRC-64雜湊值,轉換為目的地。 |
| TryHash(Crc64ParameterSet, ReadOnlySpan<Byte>, Span<Byte>, Int32) |
TryHash(ReadOnlySpan<Byte>, Span<Byte>, Int32)
- 來源:
- Crc64.cs
- 來源:
- Crc64.cs
- 來源:
- Crc64.cs
- 來源:
- Crc64.cs
嘗試計算所提供資料的CRC-64雜湊值,轉換為目的地。
public:
static bool TryHash(ReadOnlySpan<System::Byte> source, Span<System::Byte> destination, [Runtime::InteropServices::Out] int % bytesWritten);
public static bool TryHash(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten);
static member TryHash : ReadOnlySpan<byte> * Span<byte> * int -> bool
Public Shared Function TryHash (source As ReadOnlySpan(Of Byte), destination As Span(Of Byte), ByRef bytesWritten As Integer) As Boolean
參數
- source
- ReadOnlySpan<Byte>
要哈希的數據。
- bytesWritten
- Int32
當此方法回傳時,包含寫入 destination的位元組數。
傳回
true 如果 destination 足夠長以接收計算出的雜湊值(8 位元組);否則, false。
適用於
TryHash(Crc64ParameterSet, ReadOnlySpan<Byte>, Span<Byte>, Int32)
- 來源:
- Crc64.cs
public:
static bool TryHash(System::IO::Hashing::Crc64ParameterSet ^ parameterSet, ReadOnlySpan<System::Byte> source, Span<System::Byte> destination, [Runtime::InteropServices::Out] int % bytesWritten);
public static bool TryHash(System.IO.Hashing.Crc64ParameterSet parameterSet, ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten);
static member TryHash : System.IO.Hashing.Crc64ParameterSet * ReadOnlySpan<byte> * Span<byte> * int -> bool
Public Shared Function TryHash (parameterSet As Crc64ParameterSet, source As ReadOnlySpan(Of Byte), destination As Span(Of Byte), ByRef bytesWritten As Integer) As Boolean
參數
- parameterSet
- Crc64ParameterSet
- source
- ReadOnlySpan<Byte>
- bytesWritten
- Int32