createFile

expect fun createFile(storeId: String, publicMeta: ByteArray, privateMeta: ByteArray, size: Long): Long?

Creates a new file in a Store.

Return

Handle to write data

Parameters

storeId

ID of the Store to create the file in

publicMeta

public file metadata

privateMeta

private file metadata

size

size of the file

Throws

thrown when instance is closed

thrown when method encounters an exception

thrown when method encounters an unknown exception

actual fun createFile(storeId: String, publicMeta: ByteArray, privateMeta: ByteArray, size: Long): Long?

Creates a new file in a Store.

Return

Handle to write data

Parameters

storeId

ID of the Store to create the file in

publicMeta

public file metadata

privateMeta

private file metadata

size

size of the file

Throws

thrown when instance is closed

thrown when method encounters an exception

thrown when method encounters an unknown exception

actual external fun createFile(storeId: String, publicMeta: ByteArray, privateMeta: ByteArray, size: Long): Long?

Creates a new file in a Store.

Return

Handle to write data

Parameters

storeId

ID of the Store to create the file in

publicMeta

public file metadata

privateMeta

private file metadata

size

size of the file

Throws

thrown when instance is closed

thrown when method encounters an exception

thrown when method encounters an unknown exception