byte array slice fix

This commit is contained in:
Brahim Hadriche committed 2025-10-29 09:29:34 -04:00
1 parent 33518607c5
commit 0d949b1752
5 files changed
+121 -2

No files matched your search

@@ -1,3 +1,5 @@
import "pkg:/source/utils/ByteArrayUtils.bs"
namespace Protobuf
class BinaryReader
@@ -79,7 +81,7 @@ namespace Protobuf
if endPosition > m.buffer.Count()
return invalid
end if
value = m.buffer.Slice(m.position, endPosition)
value = ByteArrayUtils.Slice(m.buffer, m.position, endPosition)
m.position += length
return value
end function