Talk:System.SysUtils.ByteLength
Please note String conversion
If call this function to all string type except UnicodeString, it will be implicitly converted to UnicodeString and this function will return bytes count in CONVERTED string, not in passed string! For example, for AnsiString it returns doubled size! Please note this in doc page until this function will not overloaded for all string types to work properly! --Nashev (talk) 07:32, 1 March 2017 (PST)
Response
Hello Nashev,
Thank you for the feedback.
At the top of the page, you can see the Delphi definition of this function, and you can see that System.SysUtils.ByteLength supports string
type only.