Crc32.TryHash(ReadOnlySpan<Byte>, Span<Byte>, Int32) 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 CRC-32 hash of the provided data into the provided destination.
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
Parameters
- source
- ReadOnlySpan<Byte>
The data to hash.
- bytesWritten
- Int32
When this method returns, contains the number of bytes written to destination
.
Returns
true
if destination
is long enough to receive the computed hash value (4 bytes); otherwise, false
.
Applies to
Współpracuj z nami w serwisie GitHub
Źródło tej zawartości można znaleźć w witrynie GitHub, gdzie można również tworzyć i przeglądać problemy i żądania ściągnięcia. Więcej informacji znajdziesz w naszym przewodniku dla współtwórców.