XxHash32.Hash 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.
Overloads
Hash(Byte[]) |
Computes the XxHash32 hash of the provided data. |
Hash(Byte[], Int32) |
Computes the XxHash32 hash of the provided data using the provided seed. |
Hash(ReadOnlySpan<Byte>, Int32) |
Computes the XxHash32 hash of the provided data. |
Hash(ReadOnlySpan<Byte>, Span<Byte>, Int32) |
Computes the XxHash32 hash of the provided data into the provided destination. |
Hash(Byte[])
- Source:
- XxHash32.cs
- Source:
- XxHash32.cs
- Source:
- XxHash32.cs
Computes the XxHash32 hash of the provided data.
public:
static cli::array <System::Byte> ^ Hash(cli::array <System::Byte> ^ source);
public static byte[] Hash (byte[] source);
static member Hash : byte[] -> byte[]
Public Shared Function Hash (source As Byte()) As Byte()
Parameters
- source
- Byte[]
The data to hash.
Returns
The XxHash32 hash of the provided data.
Exceptions
source
is null
.
Applies to
Hash(Byte[], Int32)
- Source:
- XxHash32.cs
- Source:
- XxHash32.cs
- Source:
- XxHash32.cs
Computes the XxHash32 hash of the provided data using the provided seed.
public:
static cli::array <System::Byte> ^ Hash(cli::array <System::Byte> ^ source, int seed);
public static byte[] Hash (byte[] source, int seed);
static member Hash : byte[] * int -> byte[]
Public Shared Function Hash (source As Byte(), seed As Integer) As Byte()
Parameters
- source
- Byte[]
The data to hash.
- seed
- Int32
The seed value for this hash computation.
Returns
The XxHash32 hash of the provided data.
Exceptions
source
is null
.
Applies to
Hash(ReadOnlySpan<Byte>, Int32)
- Source:
- XxHash32.cs
- Source:
- XxHash32.cs
- Source:
- XxHash32.cs
Computes the XxHash32 hash of the provided data.
public static byte[] Hash (ReadOnlySpan<byte> source, int seed = 0);
static member Hash : ReadOnlySpan<byte> * int -> byte[]
Public Shared Function Hash (source As ReadOnlySpan(Of Byte), Optional seed As Integer = 0) As Byte()
Parameters
- source
- ReadOnlySpan<Byte>
The data to hash.
- seed
- Int32
The seed value for this hash computation. The default is zero.
Returns
The XxHash32 hash of the provided data.
Applies to
Hash(ReadOnlySpan<Byte>, Span<Byte>, Int32)
- Source:
- XxHash32.cs
- Source:
- XxHash32.cs
- Source:
- XxHash32.cs
Computes the XxHash32 hash of the provided data into the provided destination.
public static int Hash (ReadOnlySpan<byte> source, Span<byte> destination, int seed = 0);
static member Hash : ReadOnlySpan<byte> * Span<byte> * int -> int
Public Shared Function Hash (source As ReadOnlySpan(Of Byte), destination As Span(Of Byte), Optional seed As Integer = 0) As Integer
Parameters
- source
- ReadOnlySpan<Byte>
The data to hash.
- seed
- Int32
The seed value for this hash computation. The default is zero.
Returns
The number of bytes written to destination
.