Table of Contents

Struct HybridString16

Namespace
SampSharp.OpenMp.Core.Api
Assembly
SampSharp.OpenMp.Core.dll

Represents a string that can be either stack-allocated or heap-allocated.

[NumberedTypeGenerator("Size", 24)]
[NumberedTypeGenerator("Size", 25)]
[NumberedTypeGenerator("Size", 32)]
[NumberedTypeGenerator("Size", 46)]
public readonly struct HybridString16
Inherited Members

Constructors

HybridString16(string?)

Initializes a new instance of the HybridString16 struct.

public HybridString16(string? inp)

Parameters

inp string

The value to set.

Exceptions

NotImplementedException

Throw if heap allocation is required; this has not been implemented.

Properties

IsDynamic

Gets a value indicating whether the string is dynamic (heap allocated).

public bool IsDynamic { get; }

Property Value

bool

Length

Gets the length of the string.

public int Length { get; }

Property Value

int

Methods

AsSpan()

Gets a span representing this string.

public Span<byte> AsSpan()

Returns

Span<byte>

The span representing this string.

CopyTo(Span<byte>)

Copies the value of this HybridString16 to a destination Span<T>.

public void CopyTo(Span<byte> dest)

Parameters

dest Span<byte>

The destination span.

ToString()

public override string ToString()

Returns

string