hintEmit

abstract fun hintEmit()(source)

Hints that the buffer may be partially emitted (see emit) to the underlying sink. The underlying sink will not be explicitly flushed. There are no guarantees that this call will cause emit of buffered data as well as there are no guarantees how many bytes will be emitted.

Typically, application code will not need to call this: it is only necessary when application code writes directly to this buffered. Use this to limit the memory held in the buffer.

Consider using Sink.writeToInternalBuffer for writes into buffered followed by hintEmit call.

Throws

when the sink is closed.

when some I/O error occurs.