Struct FixedText32
- Namespace
- Misaki.HighPerformance.LowLevel.Collections
- Assembly
- Misaki.HighPerformance.LowLevel.dll
Represents a stack allocated fixed-size UTF-8 encoded string of length 32 bytes.
public struct FixedText32
- Inherited Members
Remarks
This struct is designed to hold data on the stack. Every copy of this struct causes a copy of the underlying data.
Constructors
FixedText32(byte*, ushort)
public FixedText32(byte* input, ushort length)
Parameters
FixedText32(char*, ushort)
public FixedText32(char* input, ushort length)
Parameters
FixedText32(ReadOnlySpan<byte>)
public FixedText32(ReadOnlySpan<byte> input)
Parameters
inputReadOnlySpan<byte>
FixedText32(ReadOnlySpan<char>)
public FixedText32(ReadOnlySpan<char> input)
Parameters
inputReadOnlySpan<char>
FixedText32(string)
public FixedText32(string input)
Parameters
inputstring
Fields
MAX_LENGTH
public const int MAX_LENGTH = 30
Field Value
Properties
Length
public readonly ushort Length { get; }
Property Value
Value
public string Value { get; set; }
Property Value
Methods
AsSpan()
public Span<byte> AsSpan()
Returns
GetUnsafePtr()
public readonly byte* GetUnsafePtr()
Returns
- byte*
ToString()
Returns the fully qualified type name of this instance.
public override string ToString()
Returns
- string
The fully qualified type name.