Skip to content

write generated file part

Alexey Kravtsov edited this page May 19, 2020 · 1 revision

libtd-ktx / kotlinx.telegram.coroutines / writeGeneratedFilePart

writeGeneratedFilePart

suspend fun TelegramFlow.writeGeneratedFilePart(generationId: Long, offset: Int, data: ByteArray?): Unit

Suspend function, which writes a part of a generated file. This method is intended to be used only if the client has no direct access to TDLib's file system, because it is usually slower than a direct write to the destination file.

Parameters

generationId - The identifier of the generation process.

offset - The offset from which to write the data to the file.

data - The data to write.

Clone this wiki locally