dimanche 3 juillet 2016

Strings and Bytes

(This tutorial covers features added in B4R v1.00 beta #10.)

B4R strings are different than in other B4X tools. The reasons for these differences are:
1. Very limited memory.
2. Lack of Unicode encoders.

A String object in B4R is the same as C char* string. It is an array of bytes with an additional zero byte at the end.
The requirement of the last zero byte makes it impossible to create a substring without copying the memory to a new address. For that reason arrays of bytes are...

Strings and Bytes

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1sa3i6D
via IFTTT

Aucun commentaire:

Enregistrer un commentaire