W3cubDocs

/Haxe C++

NativeFile

package cpp

@:buildXml("<include name=\"${HXCPP}/src/hx/libs/std/Build.xml\"/>") Available on cpp

Static methods

@:extern @:native("_hx_std_file_close") static file_close (handle:Dynamic):Void

@:extern @:native("_hx_std_file_contents_bytes") static file_contents_bytes (name:String):BytesData

@:extern @:native("_hx_std_file_contents_string") static file_contents_string (name:String):String

@:extern @:native("_hx_std_file_eof") static file_eof (handle:Dynamic):Bool

@:extern @:native("_hx_std_file_flush") static file_flush (handle:Dynamic):Void

@:extern @:native("_hx_std_file_open") static file_open (fname:String, r:String):Dynamic

@:extern @:native("_hx_std_file_read") static file_read (handle:Dynamic, s:BytesData, p:Int, n:Int):Int

@:extern @:native("_hx_std_file_read_char") static file_read_char (handle:Dynamic):Int

@:extern @:native("_hx_std_file_seek") static file_seek (handle:Dynamic, pos:Int, kind:Int):Void

@:extern @:native("_hx_std_file_stderr") static file_stderr ():Dynamic

@:extern @:native("_hx_std_file_stdin") static file_stdin ():Dynamic

@:extern @:native("_hx_std_file_stdout") static file_stdout ():Dynamic

@:extern @:native("_hx_std_file_tell") static file_tell (handle:Dynamic):Int

@:extern @:native("_hx_std_file_write") static file_write (handle:Dynamic, s:BytesData, p:Int, n:Int):Int

@:extern @:native("_hx_std_file_write_char") static file_write_char (handle:Dynamic, c:Int):Void

© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/cpp/NativeFile.html