Struct ScyllaMapEntry<TKey, TValue>
An unmanaged key/value pair used as the element type for ScyllaMapDOTS<TKey, TValue>.
Satisfies the unmanaged constraint so that it can be stored in native containers and passed
to Burst-compiled jobs without marshalling overhead.
Inherited Members
Namespace: Scylla.Core.Structures
Assembly: ScyllaCore.dll
Syntax
[BurstCompile]
public struct ScyllaMapEntry<TKey, TValue> where TKey : unmanaged, IEquatable<TKey> where TValue : unmanaged
Type Parameters
| Name | Description |
|---|---|
| TKey | The key type. Must be |
| TValue | The value type. Must be |
Remarks
This struct is returned by TryRemove(out ScyllaMapEntry<TKey, TValue>), TryPeek(out ScyllaMapEntry<TKey, TValue>), and CopyTo(Span<ScyllaMapEntry<TKey, TValue>>). It can also be passed directly to TryAdd(ScyllaMapEntry<TKey, TValue>) for convenience.
Constructors
ScyllaMapEntry(TKey, TValue)
Initializes a new entry with the specified key and value.
Declaration
public ScyllaMapEntry(TKey key, TValue value)
Parameters
| Type | Name | Description |
|---|---|---|
| TKey | key | The key for this entry. |
| TValue | value | The value to associate with |
Fields
Key
The key that uniquely identifies this entry within a ScyllaMapDOTS<TKey, TValue>.
Declaration
public TKey Key
Field Value
| Type | Description |
|---|---|
| TKey |
Value
The value associated with Key.
Declaration
public TValue Value
Field Value
| Type | Description |
|---|---|
| TValue |