Skip to content

Commit

Permalink
Update File.hx
Browse files Browse the repository at this point in the history
  • Loading branch information
SomeGuyWhoLovesCoding authored Sep 9, 2024
1 parent fd8e3bf commit b827366
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions std/cpp/_std/sys/io/File.hx
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ class File {
return NativeFile.file_contents_string(path);
}

public static function getBytes(path:String):haxe.io.Bytes {
var data = NativeFile.file_contents_bytes(path);
public static function getBytes(path:String, pos:Int = 0, len:Int = 0):haxe.io.Bytes {
var data = NativeFile.file_contents_bytes(path, pos, len);
return haxe.io.Bytes.ofData(data);
}

Expand Down

0 comments on commit b827366

Please sign in to comment.