LiteRTFileUtils

expect object LiteRTFileUtils

Utility functions for working with LiteRT model files.

This object provides platform-specific implementations for creating temporary or persistent model files from in-memory byte arrays.

Functions

Link copied to clipboard
expect fun createFileFromByteArray(data: ByteArray, fileName: String): String

Creates a local model file from the given LiteRT model bytes and returns its absolute filesystem path.