Table of Contents

Struct PamojaDigest

Namespace
Pamoja.Native.Interop
Assembly
Pamoja.Native.dll

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

int

Methods

From(ReadOnlySpan<byte>, string)

Reads a key or digest from exactly 32 bytes.

public static PamojaDigest From(ReadOnlySpan<byte> bytes, string name)

Parameters

bytes ReadOnlySpan<byte>

The value.

name string

What the bytes are, for the exception message.

Returns

PamojaDigest

The value.

Exceptions

ArgumentException

bytes is not Length bytes.

ToArray()

Copies the value out as an array.

public readonly byte[] ToArray()

Returns

byte[]

The 32 bytes.