Skip to content

GrainIdKeyExtensions.CreateIntegerKey(long, ReadOnlySpan<byte>)

CreateIntegerKey(long, ReadOnlySpan<byte>)

static
View source
public static IdSpan CreateIntegerKey(long key, ReadOnlySpan<byte> keyExtension)
Creates an IdSpan representing a System.Int64 key and key extension string.

Parameters

keylong
The key.
keyExtensionReadOnlySpan<byte>
The UTF-8 encoded key extension.

Returns

An IdSpan representing the provided key and key extension.