Closed Pieter12345 closed 1 year ago
Code:
@ba = byte_array(); for(@i = 0, @i < 100, @i++) {ba_put_byte(@ba, 1);} @ba2 = ba_get_bytes(@ba, 10, 10); msg(array_size (@ba).' - '.array_size(@ba2));
Results in:
100 - 0
The expected behavior is that the subarray from indices 10 to 20 is assigned to @ba2, making its size 10 instead of 0. Tested on build 282.
@ba2
10
0
Code:
Results in:
The expected behavior is that the subarray from indices 10 to 20 is assigned to
@ba2
, making its size10
instead of0
. Tested on build 282.