opaque
struct opaqueAvailable without an import.
A host-owned token that Wax carries without inspecting its payload. Identity is minted per crossing: passing the same host pointer twice can produce unequal tokens. Text, equality, and hashing use the token identity, never the host address. Recorded identities replay, but a replayed host payload must not be dereferenced as a live pointer.
Members
GetIdmethod
public fn GetId() : int64Returns the token's minted identity as a signed 64-bit value. It is not the host payload.
GetHashCodemethod
public fn GetHashCode() : uint32Hashes the token identity; it does not hash host memory.
ToStringmethod
public fn ToString() : stringFormats opaque# followed by the unsigned identity, without exposing the payload.
ToStringBuffermethod
public fn ToStringBuffer(StringBuilder builder) : int32Appends the redacted identity form and returns the number of bytes appended.
Equalsmethod
public fn Equals(opaque other) : boolCompares token identities. Separate crossings of one host value need not compare equal.
constructorconstructor
public constructor ()Provided by the compiler.