diff options
author | Daniel Weipert <git@mail.dweipert.de> | 2024-12-15 16:53:12 +0100 |
---|---|---|
committer | Daniel Weipert <git@mail.dweipert.de> | 2024-12-15 16:53:12 +0100 |
commit | 75793bd23d275d10d6a0bd8024a7e412b64557ce (patch) | |
tree | eef8145a645a88c718a4004e3a5e5f8f7700fa47 /byte_stream.gd | |
parent | a14e88ff4d0d87841a44254e2bff1784da6e8b48 (diff) |
next commit
Diffstat (limited to 'byte_stream.gd')
-rw-r--r-- | byte_stream.gd | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/byte_stream.gd b/byte_stream.gd index e1946ee..2ef85d2 100644 --- a/byte_stream.gd +++ b/byte_stream.gd @@ -27,8 +27,8 @@ func advance(jumps: int) -> void: position += jumps -func available() -> bool: - return position < bytes.size() - 1 +func available() -> int: + return bytes.size() - position func get_buffer(length: int) -> ByteStream: |