Show / Hide Table of Contents

Struct ReadOnlyBlockValues

Gets the values from a ulong array. Block lengths are QwordsInBlock elements long.

Inherited Members
ValueType.Equals(object)
ValueType.GetHashCode()
ValueType.ToString()
object.Equals(object, object)
object.GetType()
object.ReferenceEquals(object, object)
Namespace: Isopoh.Cryptography.Argon2
Assembly: Isopoh.Cryptography.Argon2.dll
Syntax
public readonly ref struct ReadOnlyBlockValues

Constructors

| Edit this page View Source

ReadOnlyBlockValues(ReadOnlySpan<ulong>)

Initializes a new instance of the ReadOnlyBlockValues struct.

Declaration
public ReadOnlyBlockValues(ReadOnlySpan<ulong> span)
Parameters
Type Name Description
ReadOnlySpan<ulong> span

The array of ulong elements the ReadOnlyBlockValues will use.

| Edit this page View Source

ReadOnlyBlockValues(Span<ulong>, ulong)

Initializes a new instance of the ReadOnlyBlockValues struct.

Declaration
public ReadOnlyBlockValues(Span<ulong> span, ulong value)
Parameters
Type Name Description
Span<ulong> span

The array of ulong elements the ReadOnlyBlockValues will use.

ulong value

Initial value filled. Will modify span.

Properties

| Edit this page View Source

this[int]

Gets or sets the ulong element at the specified index.

Declaration
public ulong this[int i] { get; }
Parameters
Type Name Description
int i

The ulong element to get or set.

Property Value
Type Description
ulong

The requested ulong element.

| Edit this page View Source

ReadOnlySpan

Gets the ReadOnlySpan<T> of the block values.

Declaration
public ReadOnlySpan<ulong> ReadOnlySpan { get; }
Property Value
Type Description
ReadOnlySpan<ulong>

Operators

| Edit this page View Source

implicit operator ReadOnlySpan<ulong>(ReadOnlyBlockValues)

Defines an implicit conversion of a ReadOnlyBlockValues to a ReadOnlySpan<T>.

Declaration
public static implicit operator ReadOnlySpan<ulong>(ReadOnlyBlockValues blockValues)
Parameters
Type Name Description
ReadOnlyBlockValues blockValues

The value to convert.

Returns
Type Description
ReadOnlySpan<ulong>
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX