Struct EvidenceId
EvidenceId, abbreviation of Evidence identifier, is a SHA-256 digest derived from a EvidenceBase's content.
As it is a SHA-256 digest, it consists of 32
Namespace: Libplanet.Types.Evidence
Assembly: Libplanet.Types.dll
Syntax
public readonly struct EvidenceId
Constructors
| Improve this Doc View SourceEvidenceId(in ImmutableArray<Byte>)
Converts an immutable
Declaration
public EvidenceId(in ImmutableArray<byte> evidenceId)
Parameters
Type | Name | Description |
---|---|---|
ImmutableArray<System.Byte> | evidenceId | An immutable |
See Also
| Improve this Doc View SourceEvidenceId(IValue)
Creates a EvidenceId instance from given bencoded
.
Declaration
public EvidenceId(IValue bencoded)
Parameters
Type | Name | Description |
---|---|---|
IValue | bencoded | A Bencodex |
See Also
| Improve this Doc View SourceEvidenceId(SerializationInfo, StreamingContext)
EvidenceId, abbreviation of Evidence identifier, is a SHA-256 digest derived from a EvidenceBase's content.
As it is a SHA-256 digest, it consists of 32
Declaration
public EvidenceId(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
SerializationInfo | info | |
StreamingContext | context |
See Also
| Improve this Doc View SourceEvidenceId(Byte[])
Converts a mutable
Declaration
public EvidenceId(byte[] evidenceId)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | evidenceId | A mutable |
See Also
Fields
| Improve this Doc View SourceSize
The
As a evidenceId is a SHA-256 digest, it is 32
Declaration
public const int Size = null
Field Value
Type | Description |
---|---|
System.Int32 |
See Also
Properties
| Improve this Doc View SourceBencoded
EvidenceId, abbreviation of Evidence identifier, is a SHA-256 digest derived from a EvidenceBase's content.
As it is a SHA-256 digest, it consists of 32
Declaration
public readonly IValue Bencoded { get; }
Property Value
Type | Description |
---|---|
IValue |
See Also
| Improve this Doc View SourceByteArray
A bare immutable
Declaration
public readonly ImmutableArray<byte> ByteArray { get; }
Property Value
Type | Description |
---|---|
ImmutableArray<System.Byte> |
Remarks
It is immutable. For a mutable array, use ToByteArray() method instead.
See Also
| Improve this Doc View SourceDefaultByteArray
EvidenceId, abbreviation of Evidence identifier, is a SHA-256 digest derived from a EvidenceBase's content.
As it is a SHA-256 digest, it consists of 32
Declaration
public static readonly ImmutableArray<byte> DefaultByteArray { get; }
Property Value
Type | Description |
---|---|
ImmutableArray<System.Byte> |
See Also
Methods
| Improve this Doc View SourceCompareTo(EvidenceId)
EvidenceId, abbreviation of Evidence identifier, is a SHA-256 digest derived from a EvidenceBase's content.
As it is a SHA-256 digest, it consists of 32
Declaration
public readonly int CompareTo(EvidenceId other)
Parameters
Type | Name | Description |
---|---|---|
EvidenceId | other |
Returns
Type | Description |
---|---|
System.Int32 |
See Also
| Improve this Doc View SourceCompareTo(Nullable<Object>)
EvidenceId, abbreviation of Evidence identifier, is a SHA-256 digest derived from a EvidenceBase's content.
As it is a SHA-256 digest, it consists of 32
Declaration
public readonly int CompareTo(object? obj)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<System.Object> | obj |
Returns
Type | Description |
---|---|
System.Int32 |
See Also
| Improve this Doc View SourceEquals(EvidenceId)
EvidenceId, abbreviation of Evidence identifier, is a SHA-256 digest derived from a EvidenceBase's content.
As it is a SHA-256 digest, it consists of 32
Declaration
public readonly bool Equals(EvidenceId other)
Parameters
Type | Name | Description |
---|---|---|
EvidenceId | other |
Returns
Type | Description |
---|---|
System.Boolean |
See Also
| Improve this Doc View SourceEquals(Nullable<Object>)
EvidenceId, abbreviation of Evidence identifier, is a SHA-256 digest derived from a EvidenceBase's content.
As it is a SHA-256 digest, it consists of 32
Declaration
public override readonly bool Equals(object? obj)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<System.Object> | obj |
Returns
Type | Description |
---|---|
System.Boolean |
See Also
| Improve this Doc View SourceGetHashCode()
EvidenceId, abbreviation of Evidence identifier, is a SHA-256 digest derived from a EvidenceBase's content.
As it is a SHA-256 digest, it consists of 32
Declaration
public override readonly int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
See Also
| Improve this Doc View SourceGetObjectData(SerializationInfo, StreamingContext)
EvidenceId, abbreviation of Evidence identifier, is a SHA-256 digest derived from a EvidenceBase's content.
As it is a SHA-256 digest, it consists of 32
Declaration
public readonly void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
SerializationInfo | info | |
StreamingContext | context |
See Also
| Improve this Doc View SourceParse(String)
Creates a EvidenceId value from a hex
string.
Declaration
public static EvidenceId Parse(string hex)
Parameters
Type | Name | Description |
---|---|---|
System.String | hex | A hexadecimal string which encodes a EvidenceId. This has to contain 64 hexadecimal digits and must not be null This is usually made by ToString() method. |
Returns
Type | Description |
---|---|
EvidenceId | A corresponding EvidenceId value. |
See Also
| Improve this Doc View SourceToByteArray()
Gets a bare mutable
Declaration
public readonly byte[] ToByteArray()
Returns
Type | Description |
---|---|
System.Byte[] | A new mutable |
See Also
| Improve this Doc View SourceToString()
Gets a EvidenceId's representative string.
Declaration
public override readonly string ToString()
Returns
Type | Description |
---|---|
System.String | A string which represents this EvidenceId. |
See Also
| Improve this Doc View SourceTryParse(String, out Nullable<EvidenceId>)
EvidenceId, abbreviation of Evidence identifier, is a SHA-256 digest derived from a EvidenceBase's content.
As it is a SHA-256 digest, it consists of 32
Declaration
public static bool TryParse(string hex, out EvidenceId? evidenceId)
Parameters
Type | Name | Description |
---|---|---|
System.String | hex | |
System.Nullable<EvidenceId> | evidenceId |
Returns
Type | Description |
---|---|
System.Boolean |
See Also
Operators
| Improve this Doc View SourceEquality(EvidenceId, EvidenceId)
EvidenceId, abbreviation of Evidence identifier, is a SHA-256 digest derived from a EvidenceBase's content.
As it is a SHA-256 digest, it consists of 32
Declaration
public static bool operator ==(EvidenceId left, EvidenceId right)
Parameters
Type | Name | Description |
---|---|---|
EvidenceId | left | |
EvidenceId | right |
Returns
Type | Description |
---|---|
System.Boolean |
See Also
| Improve this Doc View SourceInequality(EvidenceId, EvidenceId)
EvidenceId, abbreviation of Evidence identifier, is a SHA-256 digest derived from a EvidenceBase's content.
As it is a SHA-256 digest, it consists of 32
Declaration
public static bool operator !=(EvidenceId left, EvidenceId right)
Parameters
Type | Name | Description |
---|---|---|
EvidenceId | left | |
EvidenceId | right |
Returns
Type | Description |
---|---|
System.Boolean |