瀏覽代碼

(Java) add Void->BytesData overload to getBytes

Simon Krajewski 11 年之前
父節點
當前提交
a4c1509bfa
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      std/java/_std/String.hx

+ 1 - 0
std/java/_std/String.hx

@@ -52,6 +52,7 @@
 
 
 	private function codePointAt( idx : Int ) : Int;
 	private function codePointAt( idx : Int ) : Int;
 
 
+	@:overload(function() : haxe.io.BytesData { })
 	private function getBytes(encoding:String) : haxe.io.BytesData;
 	private function getBytes(encoding:String) : haxe.io.BytesData;
 
 
 	static function fromCharCode( code : Int ) : String;
 	static function fromCharCode( code : Int ) : String;