I have an element that I NEED to be as T_STRING type, but setmember()
will not allow that. You can READ T_STRING types, but now WRITE to it..
I know there is a problem with the possibility of overwriting the end
of the buffer passed in, but this can be tested for..
Since there will ALWAYS going to be an element AFTER a T_STRING element,
we could have it look at the offset on the element AFTER the T_STRING
element and the subtract 1 and then that will give the length allowed.
If the string is longer than that length, then an exception could be
raised OR just truncate..