Skip to main content

ObjectDigest

Namespace: IotaSdk

The digest of an Object.

public class ObjectDigest : IObjectDigest, System.IEquatable`1[[IotaSdk.ObjectDigest, IotaSdk, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], System.IDisposable

Inheritance Object → ObjectDigest
Implements IObjectDigest, IEquatable<ObjectDigest>, IDisposable
Attributes NullableContextAttribute, NullableAttribute

Constructors​

ObjectDigest(UInt64)​

public ObjectDigest(ulong pointer)

Parameters​

pointer UInt64

Methods​

Destroy()​

public void Destroy()

Dispose()​

public void Dispose()

IsAlive()​

Returns whether the digest represents an object that is neither deleted nor wrapped.

public bool IsAlive()

Returns​

Boolean

IsDeleted()​

Returns whether the digest represents a deleted object.

public bool IsDeleted()

Returns​

Boolean

IsWrapped()​

Returns whether the digest represents an object wrapped in another object.

public bool IsWrapped()

Returns​

Boolean

NextLexicographical()​

Returns the next digest in byte-increasing order.

public ObjectDigest NextLexicographical()

Returns​

ObjectDigest

NextLexicographicalOpt()​

Returns the next digest in byte-increasing order, or None if the result would overflow.

public ObjectDigest? NextLexicographicalOpt()

Returns​

ObjectDigest?

ToBase58()​

public string ToBase58()

Returns​

String

ToBcs()​

Convert this type to BCS encoded bytes.

public Byte[] ToBcs()

Returns​

Byte[]

Exceptions​

SdkFfiException

ToBytes()​

public Byte[] ToBytes()

Returns​

Byte[]

ToDisplayString()​

Render this type as human-readable text.

Some types also print this through the binding's native string conversion; this method is the spelling every object type has.

The layout is meant for reading and can change between releases. Use the JSON or BCS conversions for output that gets parsed.

public string ToDisplayString()

Returns​

String

ToJson()​

Convert this type to a JSON encoded string.

public string ToJson()

Returns​

String

Exceptions​

SdkFfiException

ToString()​

public override string ToString()

Returns​

String

Equals(ObjectDigest)​

public bool Equals(ObjectDigest? other)

Parameters​

other ObjectDigest?

Returns​

Boolean

Equals(Object)​

public override bool Equals(object? obj)

Parameters​

obj Object?

Returns​

Boolean

GetHashCode()​

public override int GetHashCode()

Returns​

Int32

FromBase58(String)​

public static ObjectDigest FromBase58(string base58)

Parameters​

base58 String

Returns​

ObjectDigest

Exceptions​

SdkFfiException

FromBcs(Byte[])​

Create this type from BCS encoded bytes.

public static ObjectDigest FromBcs(Byte[] bcs)

Parameters​

bcs Byte[]

Returns​

ObjectDigest

Exceptions​

SdkFfiException

FromBytes(Byte[])​

public static ObjectDigest FromBytes(Byte[] bytes)

Parameters​

bytes Byte[]

Returns​

ObjectDigest

Exceptions​

SdkFfiException

FromJson(String)​

Create this type from a JSON encoded string.

public static ObjectDigest FromJson(string json)

Parameters​

json String

Returns​

ObjectDigest

Exceptions​

SdkFfiException

ObjectCanceled()​

A marker that signifies the object is canceled.

public static ObjectDigest ObjectCanceled()

Returns​

ObjectDigest

ObjectDeleted()​

A marker that signifies the object is deleted.

public static ObjectDigest ObjectDeleted()

Returns​

ObjectDigest

ObjectWrapped()​

A marker that signifies the object is wrapped into another object.

public static ObjectDigest ObjectWrapped()

Returns​

ObjectDigest

Random()​

public static ObjectDigest Random()

Returns​

ObjectDigest