[fpc-devel] Performance of string handling in trunk
Michael Schnell
mschnell at lumino.de
Wed Jun 26 12:43:16 CEST 2013
On 06/26/2013 12:05 PM, Hans-Peter Diettrich wrote:
> After an assignment both strings refer to the same memory, i.e.
> pchar(s1)=pchar(s2). Everything else indicates an error, somwehere.
>
This is exactly what I wanted to show: it results in ContentPointer,
StringLength, ReferenceCount (plus - if no auto-conversion is done -
supposedly EncodingType and ElementSize in DXE) being identical for both
strings after the assignment. Thus a RawByteString supposedly will in
fact get the source's encoding type).
(see my mail to Sven).
-Michael
More information about the fpc-devel
mailing list