Struct FixedText64
- Namespace
- Misaki.HighPerformance.LowLevel.Collections
- Assembly
- Misaki.HighPerformance.LowLevel.dll
Represents a stack allocated fixed-size UTF-8 encoded string of length 64 bytes.
public struct FixedText64
- 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
FixedText64(byte*, ushort)
public FixedText64(byte* input, ushort length)
Parameters
FixedText64(char*, ushort)
public FixedText64(char* input, ushort length)
Parameters
FixedText64(ReadOnlySpan<byte>)
public FixedText64(ReadOnlySpan<byte> input)
Parameters
inputReadOnlySpan<byte>
FixedText64(ReadOnlySpan<char>)
public FixedText64(ReadOnlySpan<char> input)
Parameters
inputReadOnlySpan<char>
FixedText64(string)
public FixedText64(string input)
Parameters
inputstring
Fields
MAX_LENGTH
public const int MAX_LENGTH = 62
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.