Class NativeAPI.InputData
public static class NativeAPI.InputData
- Inheritance
-
objectNativeAPI.InputData
Methods
litert_lm_input_data_create(InputDataType, nint, nuint)
Creates a LiteRT LM Input Data. The caller is responsible for destroying the input data using litert_lm_input_data_delete(nint).
public static extern nint litert_lm_input_data_create(InputDataType type, nint data, nuint size)
Parameters
typeInputDataTypeThe type of the input data.
datanintThe data pointer. The data is copied internally.
sizenuintThe size of the data in bytes.
Returns
- nint
A pointer to the created input data, or nint.Zero on failure.
litert_lm_input_data_delete(nint)
Destroys a LiteRT LM Input Data.
public static extern void litert_lm_input_data_delete(nint inputData)
Parameters
inputDatanintThe input data to destroy.