Table of Contents

Class NativeAPI.InputData

public static class NativeAPI.InputData
Inheritance
object
NativeAPI.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

type InputDataType

The type of the input data.

data nint

The data pointer. The data is copied internally.

size nuint

The 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

inputData nint

The input data to destroy.