summaryrefslogtreecommitdiff
path: root/byte_stream.gd
diff options
context:
space:
mode:
authorDaniel Weipert <git@mail.dweipert.de>2024-12-15 16:53:12 +0100
committerDaniel Weipert <git@mail.dweipert.de>2024-12-15 16:53:12 +0100
commit75793bd23d275d10d6a0bd8024a7e412b64557ce (patch)
treeeef8145a645a88c718a4004e3a5e5f8f7700fa47 /byte_stream.gd
parenta14e88ff4d0d87841a44254e2bff1784da6e8b48 (diff)
next commit
Diffstat (limited to 'byte_stream.gd')
-rw-r--r--byte_stream.gd4
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: