Sometimes it can be required to convert the contents of a buffer into an array. It would be handy to allow a start offset to be specified. This would especially helpful to implement a mutable buffer input stream. The arrayIn method should not start at the buffer start but at the current read position.
The method is similar to makearray only that it accepts a second (optional) integer argument (-1 < x <= mb~length):
RexxArray RexxMutableBuffer::toarray(RexxString div, RexxInteger pstart)
+/ Function: Split string into an array /
+ stringsize_t _start = optionalPositionArgument(pstart, 0, ARG_TWO);
+ // the start position must be within the string bounds
+ if (_start > getLength())
+ reportException(Error_Incorrect_method_position, pstart);
+ return StringUtil::makearray(getStringData() + _start, getLength(), div);
I will commit a change if there are no concerns.