class haxe.io.Output

Available on all platforms

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 close():Void

function flush():Void

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.

function write(s:Bytes):Void

function writeByte(c:Int):Void

function writeBytes(s:Bytes, pos:Int, len:Int):Int

function writeDouble(x:Float):Void

function writeFloat(x:Float):Void

function writeFullBytes(s:Bytes, pos:Int, len:Int):Void

function writeInput(i:Input, ?bufsize:Int = null):Void

function writeInt16(x:Int):Void

function writeInt24(x:Int):Void

function writeInt32(x:Int):Void

function writeInt8(x:Int):Void

function writeString(s:String):Void

function writeUInt16(x:Int):Void

function writeUInt24(x:Int):Void