Table of Contents

Struct FixedString512

Namespace
Misaki.HighPerformance.LowLevel.Collections
Assembly
Misaki.HighPerformance.LowLevel.dll

Represents a stack allocated fixed-size string of length 512 bytes.

public struct FixedString512
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

FixedString512(char*, ushort)

public FixedString512(char* input, ushort length)

Parameters

input char*
length ushort

FixedString512(ReadOnlySpan<char>)

public FixedString512(ReadOnlySpan<char> input)

Parameters

input ReadOnlySpan<char>

FixedString512(string)

public FixedString512(string input)

Parameters

input string

Fields

MAX_LENGTH

public const int MAX_LENGTH = 255

Field Value

int

Properties

Length

public readonly ushort Length { get; }

Property Value

ushort

Value

public string Value { get; set; }

Property Value

string

Methods

AsSpan()

public Span<byte> AsSpan()

Returns

Span<byte>

GetUnsafePtr()

public readonly char* GetUnsafePtr()

Returns

char*

ToString()

Returns the fully qualified type name of this instance.

public override string ToString()

Returns

string

The fully qualified type name.