Table of Contents

Class LongKeyGenerator

Namespace
DrawnUi.Draw
Assembly
DrawnUi.Maui.dll

Ultra-fast key generator for queues using long keys

public static class LongKeyGenerator
Inheritance
LongKeyGenerator
Inherited Members

Methods

EncodeSemantic(string)

Encodes semantic string directly to long (up to 8 chars, case-sensitive)

public static long EncodeSemantic(string semantic)

Parameters

semantic string

Returns

long

Next()

Generates next unique key (thread-safe, fastest option)

public static long Next()

Returns

long

NextThreadDistributed()

Generates key with thread distribution for better performance under high contention

public static long NextThreadDistributed()

Returns

long