Skip to content

Commit

Permalink
Update Bytes.hx
Browse files Browse the repository at this point in the history
  • Loading branch information
SomeGuyWhoLovesCoding authored Sep 10, 2024
1 parent 4c444fe commit 7bc84e1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions std/hl/_std/haxe/io/Bytes.hx
Original file line number Diff line number Diff line change
Expand Up @@ -203,12 +203,13 @@ class Bytes {
return s.toString();
}

public inline function getData():BytesData {
public function getData():BytesData {
return new haxe.io.BytesData(b, length);
}

public inline static function alloc(length:Int):Bytes {
public static function alloc(length:Int):Bytes {
var b = new hl.Bytes(length);
b.fill(0, length, 0);
return new Bytes(b, length);
}

Expand Down

0 comments on commit 7bc84e1

Please sign in to comment.