I'm trying to apply Tencoding.UTF8.Getstring on a part of a static bytes array without copying its content to a dynamic array. If the array is dynamic, i have no problem using:
stringvar:=Tencoding.utf8.Getstring(dynbytearray,offset,length);
however, when i have a static predefined length array, the syntax doesn't work and all i could figure is to declare a new dynamic array, set its length, and copy the bytes. I don't like doing the needless copying since i suspect i just miss a syntax trick. My attempts like "setlength(newdynarr,whatever); newdynarr:=@staticarr [optional offset]" failed so far. Thanks.