Struct ReadOnlyBlockValues
Gets the values from a ulong array. Block lengths are QwordsInBlock elements long.
Inherited Members
Namespace: Isopoh.Cryptography.Argon2
Assembly: Isopoh.Cryptography.Argon2.dll
Syntax
public readonly ref struct ReadOnlyBlockValues
Constructors
| Edit this page View SourceReadOnlyBlockValues(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. |
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 |
Properties
| Edit this page View Sourcethis[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. |
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 Sourceimplicit 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> |