Skip to content

Commit

Permalink
UBJson utility method
Browse files Browse the repository at this point in the history
  • Loading branch information
Anuken committed Sep 28, 2023
1 parent 443db6a commit 8deb453
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arc-core/src/arc/util/serialization/UBJsonReader.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ public JsonValue parse(final DataInputStream din) throws IOException{
}
}

public JsonValue parseWihoutClosing(final DataInputStream din) throws IOException{
return parse(din, din.readByte());
}

protected JsonValue parse(final DataInputStream din, final byte type) throws IOException{
if(type == '[')
return parseArray(din);
Expand Down

0 comments on commit 8deb453

Please sign in to comment.