new()
@:value(0)read onlyavailable:Int = 0
@:value(0)read onlylength:Int = 0
endsWith(e:String):Bool
peekByte(offset:Int):Int
peekUntil(byte:Int):Int
readAllAvailableBytes():Bytes
readByte():Int
readBytes(count:Int):Bytes
readLine():String
readLinesUntil(delimiter:String):Array<String>
readUnsignedInt():UInt
readUnsignedShort():UInt
readUntil(delimiter:String):Bytes
writeByte(v:Int):Void
writeBytes(data:Bytes):Void
writeInt(v:Int):Void
writeShort(v:Int):Void