IdSpan
struct
Namespace: Orleans.Runtime
Primitive type for identities, representing a sequence of bytes.
[Orleans.GenerateSerializer][Orleans.Immutable]public readonly struct IdSpan : IComparable<IdSpan>, IEquatable<IdSpan>, IFormattable, ISpanFormattable, ISerializableConstructors
IdSpan(byte[])Initializes a new instance of theIdSpanstruct.
Properties
Methods
AsSpanReturns a span representation of this instance.CompareTo(IdSpan)Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.Create(string)Creates a newIdSpaninstance from the provided value.Equals(IdSpan)Indicates whether the current object is equal to another object of the same type.Equals(object?)Indicates whether this instance and a specified object are equal.GetHashCodeReturns the hash code for this instance.GetObjectData(SerializationInfo, StreamingContext)Populates aSystem.Runtime.Serialization.SerializationInfowith the data needed to serialize the target object.GetUniformHashCodeReturns a uniform, stable hash code for anIdSpan.ToStringReturns a string representation of this instance, decoding the value as UTF8.TryFormat(Span<char>, int)UnsafeCreate(byte[]?, int)Creates an instance, specifying both the hash code and the value.UnsafeGetArray(IdSpan)Gets the underlying array from this instance.operator ==(IdSpan, IdSpan)Compares the provided operands for equality.operator !=(IdSpan, IdSpan)Compares the provided operands for inequality.
