summaryrefslogtreecommitdiff
path: root/byte_stream.gd
diff options
context:
space:
mode:
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: