Available on python
new(stream:RawIOBase)
seek(p:Int, pos:FileSeek):Void
read onlycanSeek:Bool
@:keepbigEndian:Bool
Endianness (word byte order) used when writing numbers.
If true, big-endian is used, otherwise little-endian is used.
true
little-endian
tell():Int
@:keepwrite(s:Bytes):Void
Write all bytes stored in s.
s
@:keepwriteDouble(x:Float):Void
Write x as 64-bit double-precision floating point number.
x
Endianness is specified by the bigEndian property.
bigEndian
@:keepwriteFloat(x:Float):Void
Write x as 32-bit floating point number.
@:keepwriteFullBytes(s:Bytes, pos:Int, len:Int):Void
Write len bytes from s starting by position specified by pos.
len
pos
Unlike writeBytes, this method tries to write the exact len amount of bytes.
writeBytes
@:keepwriteInput(i:Input, ?bufsize:Int):Void
Read all available data from i and write it.
i
The bufsize optional argument specifies the size of chunks by which data is read and written. Its default value is 4096.
bufsize
@:keepwriteInt16(x:Int):Void
Write x as 16-bit signed integer.
@:keepwriteInt24(x:Int):Void
Write x as 24-bit signed integer.
@:keepwriteInt32(x:Int):Void
Write x as 32-bit signed integer.
@:keepwriteInt8(x:Int):Void
Write x as 8-bit signed integer.
@:keepwriteString(s:String, ?encoding:Encoding):Void
Write s string.
@:keepwriteUInt16(x:Int):Void
Write x as 16-bit unsigned integer.
@:keepwriteUInt24(x:Int):Void
Write x as 24-bit unsigned integer.