AiutaPlatformFile

actual class AiutaPlatformFile
expect class AiutaPlatformFile

Platform-specific file implementation for handling file operations across different platforms. This class provides a common interface for file operations while allowing platform-specific implementations.

actual class AiutaPlatformFile
actual class AiutaPlatformFile

Constructors

Link copied to clipboard
constructor(uri: Uri)
constructor(file: File)
constructor(url: NSURL)
constructor(url: NSURL, tempUrl: NSURL)

Properties

Link copied to clipboard
val file: File
Link copied to clipboard
val uri: Uri
Link copied to clipboard
val url: NSURL

Functions

Link copied to clipboard
actual suspend fun AiutaPlatformFile.readByteArray(platformContext: <Error class: unknown class>): ByteArray
expect suspend fun AiutaPlatformFile.readByteArray(platformContext: AiutaPlatformContext): ByteArray

Reads the contents of the file as a byte array.

actual suspend fun AiutaPlatformFile.readByteArray(platformContext: AiutaPlatformContext): ByteArray
actual suspend fun AiutaPlatformFile.readByteArray(platformContext: AiutaPlatformContext): ByteArray
Link copied to clipboard
actual suspend fun AiutaPlatformFile.readCompressedByteArray(platformContext: <Error class: unknown class>, config: <Error class: unknown class>): ByteArray
expect suspend fun AiutaPlatformFile.readCompressedByteArray(platformContext: AiutaPlatformContext, config: AiutaCompressionConfig = AiutaCompressionConfig.DEFAULT): ByteArray

Reads the contents of the file as a compressed byte array.

actual suspend fun AiutaPlatformFile.readCompressedByteArray(platformContext: AiutaPlatformContext, config: <Error class: unknown class>): ByteArray