Struct HybridString32
Represents a string that can be either stack-allocated or heap-allocated.
public readonly struct HybridString32
- Inherited Members
Constructors
HybridString32(string?)
Initializes a new instance of the HybridString16 struct.
public HybridString32(string? inp)
Parameters
inpstringThe value to set.
Exceptions
- NotImplementedException
Throw if heap allocation is required; this has not been implemented.
Properties
IsDynamic
Gets a value indicating whether the string is dynamic (heap allocated).
public bool IsDynamic { get; }
Property Value
Length
Gets the length of the string.
public int Length { get; }
Property Value
Methods
AsSpan()
Gets a span representing this string.
public Span<byte> AsSpan()
Returns
CopyTo(Span<byte>)
Copies the value of this HybridString16 to a destination Span<T>.
public void CopyTo(Span<byte> dest)
Parameters
ToString()
public override string ToString()