Skip to content

Commit

Permalink
[lib/util] Add DataReader.atLimit() method
Browse files Browse the repository at this point in the history
  • Loading branch information
titzer committed Jun 28, 2023
1 parent 43ebbfb commit d05a4fc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/util/DataReader.v3
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ class DataReader {
def at(npos: int) -> this {
pos = npos;
}
// set the current position
def atLimit() -> this {
pos = limit;
}
// set the current position and limit
def atl(npos: int, nlimit: int) -> this {
pos = npos;
Expand Down

0 comments on commit d05a4fc

Please sign in to comment.