Table of Contents

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

input byte*
length ushort

FixedText32(char*, ushort)

public FixedText32(char* input, ushort length)

Parameters

input char*
length ushort

FixedText32(ReadOnlySpan<byte>)

public FixedText32(ReadOnlySpan<byte> input)

Parameters

input ReadOnlySpan<byte>

FixedText32(ReadOnlySpan<char>)

public FixedText32(ReadOnlySpan<char> input)

Parameters

input ReadOnlySpan<char>

FixedText32(string)

public FixedText32(string input)

Parameters

input string

Fields

MAX_LENGTH

public const int MAX_LENGTH = 30

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 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.