write

fun write(inboxHandle: Long, data: ByteArray)

Writes data to Inbox file.

Parameters

inboxHandle

the handle of the Inbox to write to

data

data to write (the recommended size of data chunk is InboxFileStream.OPTIMAL_SEND_SIZE)

Throws

when method encounters an exception while executing InboxApi.writeToFile

when method encounters an unknown exception while executing InboxApi.writeToFile

when .inboxApi is closed

IOException

when this is closed