LLamaTokenDataArrayNative
Namespace: LLama.Native
Contains a pointer to an array of LLamaTokenData which is pinned in memory.
1 |
|
Inheritance Object → ValueType → LLamaTokenDataArrayNative
Fields
data
A pointer to an array of LlamaTokenData
1 |
|
Remarks:
Memory must be pinned in place for all the time this LLamaTokenDataArrayNative is in use
size
Number of LLamaTokenData in the array
1 |
|
Properties
sorted
Indicates if the items in the array are sorted
1 |
|
Property Value
Methods
Create(LLamaTokenDataArray, LLamaTokenDataArrayNative&)
Create a new LLamaTokenDataArrayNative around the data in the LLamaTokenDataArray
1 |
|
Parameters
array
LLamaTokenDataArray
Data source
native
LLamaTokenDataArrayNative&
Created native array
Returns
MemoryHandle
A memory handle, pinning the data in place until disposed