class NativeOutput<T>
package python.io
extends Output
extended by NativeBytesOutput, NativeTextOutput
Available on python
Constructor
Variables
Methods
Inherited Variables
Defined by Output
Inherited Methods
Defined by Output
@:has_untyped@:keepwriteBytes(s:Bytes, pos:Int, len:Int):Int
Write len
bytes from s
starting by position specified by pos
.
Returns the actual length of written data that can differ from len
.
See writeFullBytes
that tries to write the exact amount of specified bytes.
@:keepwriteDouble(x:Float):Void
Write x
as 64-bit double-precision floating point number.
Endianness is specified by the bigEndian
property.
@:keepwriteFloat(x:Float):Void
Write x
as 32-bit floating point number.
Endianness is specified by the bigEndian
property.
@:keepwriteFullBytes(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.
@:keepwriteInput(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.
@:keepwriteInt16(x:Int):Void
Write x
as 16-bit signed integer.
Endianness is specified by the bigEndian
property.
@:keepwriteInt24(x:Int):Void
Write x
as 24-bit signed integer.
Endianness is specified by the bigEndian
property.
@:keepwriteInt32(x:Int):Void
Write x
as 32-bit signed integer.
Endianness is specified by the bigEndian
property.
@:keepwriteUInt16(x:Int):Void
Write x
as 16-bit unsigned integer.
Endianness is specified by the bigEndian
property.
@:keepwriteUInt24(x:Int):Void
Write x
as 24-bit unsigned integer.
Endianness is specified by the bigEndian
property.