encode

open fun encode(    data: ByteBuffer,     file: File,     options: Options): Boolean

Writes the given data to the given output stream and returns True if the write completed successfully and should be committed.

Parameters

data

The data to write.

file

The file to write the data to.

options

The set of options to apply when encoding.