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