Constructor

new()

Methods

getBytes():Bytes

Returns the Bytes of this output.

This function should not be called more than once on a given BytesOutput instance.

Inherited Variables

Defined by Output

bigEndian:Bool

Endianness (word byte order) used when writing numbers.

If true, big-endian is used, otherwise little-endian is used.

Inherited Methods

Defined by Output

close():Void

Close the output.

Behaviour while writing after calling this method is unspecified.

flush():Void

Flush any buffered data.

write(s:Bytes):Void

Write all bytes stored in s.

writeDouble(x:Float):Void

Write x as 64-bit double-precision floating point number.

Endianness is specified by the bigEndian property.

writeFloat(x:Float):Void

Write x as 32-bit floating point number.

Endianness is specified by the bigEndian property.

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

Write len bytes from s starting by position specified by pos.

Unlike writeBytes, this method tries to write the exact len amount of bytes.

writeInt32(x:Int):Void

Write x as 32-bit signed integer.

Endianness is specified by the bigEndian property.

writeString(s:String, ?encoding:Encoding):Void

Write s string.

writeUInt16(x:Int):Void

Write x as 16-bit unsigned integer.

Endianness is specified by the bigEndian property.

writeUInt24(x:Int):Void

Write x as 24-bit unsigned integer.

Endianness is specified by the bigEndian property.