Available on all platforms
The length of the stream in bytes.
Returns the Bytes of this output.
This function should not be called more than once on a given
Endianness (word byte order) used when writing numbers.
If true, big-endian is used, otherwise little-endian is used.
Close the output.
Behaviour while writing after calling this method is unspecified.
Flush any buffered data.
Inform that we are about to write at least nbytes 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.
Write all bytes stored in s.
Write x as 64-bit double-precision floating point number.
Endianness is specified by the bigEndian property.
Write x as 32-bit floating point number.
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.
writeInput (i:Input, ?bufsize:Int):Void
Read all available data from i and write it.
The bufsize optional argument specifies the size of chunks by
which data is read and written. Its default value is 4096.
Write x as 16-bit signed integer.
Write x as 24-bit signed integer.
Write x as 32-bit signed integer.
Write x as 8-bit signed integer.
writeString (s:String, ?encoding:Encoding):Void
Write s string.
Write x as 16-bit unsigned integer.
Write x as 24-bit unsigned integer.