Table of Contents

Struct FixedString1024

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

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

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

FixedString1024(char*, ushort)

public FixedString1024(char* input, ushort length)

Parameters

input char*
length ushort

FixedString1024(ReadOnlySpan<char>)

public FixedString1024(ReadOnlySpan<char> input)

Parameters

input ReadOnlySpan<char>

FixedString1024(string)

public FixedString1024(string input)

Parameters

input string

Fields

MAX_LENGTH

public const int MAX_LENGTH = 511

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.