Struct Nonce
Assembly: Libplanet.dll
Syntax
public struct Nonce : IEquatable<Nonce>
Constructors
|
Improve this Doc
View Source
Nonce(ImmutableArray<Byte>)
Converts an immutable array into a Nonce instance.
This constructor is inverse of ByteArray property.
Declaration
public Nonce(ImmutableArray<byte> nonce)
Parameters
Type |
Name |
Description |
ImmutableArray<Byte> |
nonce |
An immutable array to convert to
a Nonce instance.
|
See Also
|
Improve this Doc
View Source
Nonce(Byte[])
Converts a array into a Nonce
value.
This constructor is an inverse function of
ToByteArray() method.
Declaration
public Nonce(byte[] nonce)
Parameters
Type |
Name |
Description |
Byte[] |
nonce |
A array to convert to
a Nonce object. It must not be null .
|
See Also
Properties
|
Improve this Doc
View Source
ByteArray
A bare immutable array of the nonce.
Declaration
public readonly ImmutableArray<byte> ByteArray { get; }
Property Value
Type |
Description |
ImmutableArray<Byte> |
|
See Also
Methods
|
Improve this Doc
View Source
Equals(Nonce)
Declaration
public bool Equals(Nonce other)
Parameters
Type |
Name |
Description |
Nonce |
other |
|
Returns
|
Improve this Doc
View Source
Equals(Nullable<Object>)
Declaration
public override bool Equals(object? obj)
Parameters
Returns
|
Improve this Doc
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
|
Improve this Doc
View Source
ToByteArray()
Gets a bare mutable array of the nonce.
Declaration
public byte[] ToByteArray()
Returns
Type |
Description |
Byte[] |
A new mutable array of the nonce.
Since a returned array is created every time the method is called,
any mutations on that array does not affect to
the Nonce object.
|
See Also
|
Improve this Doc
View Source
ToString()
Gets a hexadecimal representation of a Nonce.
Declaration
public override string ToString()
Returns
Type |
Description |
String |
A hexadecimal representation of a Nonce.
|
Operators
|
Improve this Doc
View Source
Equality(Nonce, Nonce)
Declaration
public static bool operator ==(Nonce left, Nonce right)
Parameters
Returns
|
Improve this Doc
View Source
Inequality(Nonce, Nonce)
Declaration
public static bool operator !=(Nonce left, Nonce right)
Parameters
Returns
Implements
IEquatable<>