class haxe.io.Output
Available on all platforms
Sub classes | ||||||||
![]() | BytesOutput, Stdin, FileOutput |
|
An Output is an abstract write. A specific output implementation will only have to override the [writeChar] and maybe the [write], [flush] and [close] methods. See [File.write] and [String.write] for two ways of creating an Output.
Instance Fields
function prepare(nbytes:Int):Void
Inform that we are about to write at least a specified number of bytes. The underlying implementation can allocate proper working space depending on this information, or simply ignore it. This is not a mandatory call but a tip and is only used in some specific cases.