7 * IoTString wraps the underlying char string.
8 * @author Brian Demsky <bdemsky@uci.edu>
12 public class IoTString {
19 * Builds an IoTString object around the char array. This
20 * constructor makes a copy, so the caller is free to modify the char array.
24 IoTString(Array<char> * _array) { array.init(_array); }
28 * Internal method to grab a reference to our char array. Caller
32 Array<char> * internalBytes() { return &array; }
35 * Returns a copy of the underlying char string.
38 Array<char> * getBytes() { return new Array<Char>(&array); }
41 * Returns the length in chars of the IoTString.
44 int length() { return array->length(); }