Struct PamojaDigest
A 32-byte key or digest carried inline inside a blittable struct.
public struct PamojaDigest
- Inherited Members
Fields
Length
The width of a key or digest, in bytes.
public const int Length = 32
Field Value
Methods
From(ReadOnlySpan<byte>, string)
Reads a key or digest from exactly 32 bytes.
public static PamojaDigest From(ReadOnlySpan<byte> bytes, string name)
Parameters
bytesReadOnlySpan<byte>The value.
namestringWhat the bytes are, for the exception message.
Returns
- PamojaDigest
The value.
Exceptions
- ArgumentException
bytesis not Length bytes.
ToArray()
Copies the value out as an array.
public readonly byte[] ToArray()
Returns
- byte[]
The 32 bytes.