B4R Question Modifiying array length in Globals: How does it work?

KMatle

Expert
Licensed User
Longtime User
With

B4X:
b4r_main::_receivedm->length=msg.length();

one can modify the length of the given array. I use it as a buffer (255 bytes).

To me it is always 255 bytes long (Globals), but... Maybe a stupid question but how is it's length reduced e.g. to 5? Is it redefined? Usually you use a length indicator but the array itsself stays 255 bytes long (as it is a buffer).
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…