Język

Crc64.TryHash Metoda

Definicja

Przeciążenia

Nazwisko Opis
TryHash(ReadOnlySpan<Byte>, Span<Byte>, Int32)

Próbuje obliczyć skrót CRC-64 podanych danych do podanego miejsca docelowego.

TryHash(Crc64ParameterSet, ReadOnlySpan<Byte>, Span<Byte>, Int32)

TryHash(ReadOnlySpan<Byte>, Span<Byte>, Int32)

Źródło:
Crc64.cs
Źródło:
Crc64.cs
Źródło:
Crc64.cs
Źródło:
Crc64.cs

Próbuje obliczyć skrót CRC-64 podanych danych do podanego miejsca docelowego.

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

Parametry

source
ReadOnlySpan<Byte>

Dane do skrótu.

destination
Span<Byte>

Bufor, który odbiera obliczoną wartość skrótu.

bytesWritten
Int32

Gdy ta metoda zwróci wartość , zawiera liczbę bajtów zapisanych w pliku destination.

Zwraca

true jeśli destination jest wystarczająco długi, aby otrzymać obliczoną wartość skrótu (8 bajtów); w przeciwnym razie false.

Dotyczy

TryHash(Crc64ParameterSet, ReadOnlySpan<Byte>, Span<Byte>, Int32)

Źródło:
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

Parametry

parameterSet
Crc64ParameterSet
source
ReadOnlySpan<Byte>
destination
Span<Byte>
bytesWritten
Int32

Zwraca

Dotyczy