Table of Contents

Class NativeAPI.JsonResponse

public static class NativeAPI.JsonResponse
Inheritance
object
NativeAPI.JsonResponse

Methods

litert_lm_json_response_delete(nint)

Destroys a LiteRT LM Json Response object.

public static extern void litert_lm_json_response_delete(nint response)

Parameters

response nint

The response to destroy.

litert_lm_json_response_get_string(nint)

Returns the JSON response string from a response object.

public static extern nint litert_lm_json_response_get_string(nint response)

Parameters

response nint

The response object.

Returns

nint

The response JSON string. The returned string is owned by the JsonResponse object and is valid only for its lifetime. Returns nint.Zero if response is nint.Zero.