summaryrefslogtreecommitdiff
path: root/byte_stream.gd
diff options
context:
space:
mode:
authorDaniel Weipert <git@mail.dweipert.de>2024-12-22 18:38:11 +0100
committerDaniel Weipert <git@mail.dweipert.de>2024-12-22 18:38:11 +0100
commit7b3f386449aeab124d84d2aff4c273e646e68763 (patch)
tree9d24a7de247d190edcd8e315fc3e45ab8a4a8d34 /byte_stream.gd
parentf4e07d090cded56ebab54363f1b47f1ea45c8682 (diff)
next commitHEADmain
Diffstat (limited to 'byte_stream.gd')
-rw-r--r--byte_stream.gd3
1 files changed, 3 insertions, 0 deletions
diff --git a/byte_stream.gd b/byte_stream.gd
index 2ef85d2..219e977 100644
--- a/byte_stream.gd
+++ b/byte_stream.gd
@@ -97,3 +97,6 @@ func decode_float() -> float:
func get_string_from_utf8(length: int) -> String:
return get_buffer(length).bytes.get_string_from_utf8()
+
+func get_string_from_ascii(length: int) -> String:
+ return get_buffer(length).bytes.get_string_from_ascii()