Run formatter
This commit is contained in:
@@ -1067,7 +1067,7 @@ class Bytes
|
||||
setInt32(pos, v.low);
|
||||
}
|
||||
|
||||
public function getString(pos:Int, len:Int #if (!hl || haxe_ver >= 4), ?encoding:#if (haxe_ver >= 4) haxe.io.Encoding #else Dynamic #end #end):String
|
||||
public function getString(pos:Int, len:Int #if (!hl || haxe_ver >= 4), ?encoding :#if (haxe_ver >= 4) haxe.io.Encoding #else Dynamic #end #end):String
|
||||
{
|
||||
if (outRange(pos, len)) throw Error.OutsideBounds;
|
||||
|
||||
@@ -1118,7 +1118,7 @@ class Bytes
|
||||
}
|
||||
|
||||
public static function ofString(s:String
|
||||
#if (!hl || haxe_ver >= 4), ?encoding:#if (haxe_ver >= 4) haxe.io.Encoding #else Dynamic #end #end):Bytes@:privateAccess {
|
||||
#if (!hl || haxe_ver >= 4), ?encoding :#if (haxe_ver >= 4) haxe.io.Encoding #else Dynamic #end #end):Bytes @:privateAccess {
|
||||
var size = 0;
|
||||
var b = s.bytes.utf16ToUtf8(0, size);
|
||||
return new Bytes(b, size);
|
||||
|
||||
Reference in New Issue
Block a user