Język

Crc32.TryHash Metoda

Definicja

Przeciążenia

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

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

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

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

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

Próbuje obliczyć skrót CRC-32 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 (4 bajty); w przeciwnym razie false.

Dotyczy

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

Źródło:
Crc32.cs
public:
 static bool TryHash(System::IO::Hashing::Crc32ParameterSet ^ parameterSet, ReadOnlySpan<System::Byte> source, Span<System::Byte> destination, [Runtime::InteropServices::Out] int % bytesWritten);
public static bool TryHash(System.IO.Hashing.Crc32ParameterSet parameterSet, ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten);
static member TryHash : System.IO.Hashing.Crc32ParameterSet * ReadOnlySpan<byte> * Span<byte> * int -> bool
Public Shared Function TryHash (parameterSet As Crc32ParameterSet, source As ReadOnlySpan(Of Byte), destination As Span(Of Byte), ByRef bytesWritten As Integer) As Boolean

Parametry

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

Zwraca

Dotyczy