|
@@ -22,6 +22,7 @@
|
|
|
package sys.io;
|
|
|
|
|
|
import lua.FileHandle;
|
|
|
+import haxe.io.Bytes;
|
|
|
|
|
|
class FileOutput extends haxe.io.Output {
|
|
|
var f:FileHandle;
|
|
@@ -48,6 +49,12 @@ class FileOutput extends haxe.io.Output {
|
|
|
f.write(String.fromCharCode(c));
|
|
|
}
|
|
|
|
|
|
+ override inline public function writeBytes( s : Bytes, pos : Int, len : Int) : Int {
|
|
|
+ f.write(s.getString(pos, len));
|
|
|
+ return s.length;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
override public function close() {
|
|
|
f.close();
|
|
|
}
|