I have an AnsiString and I need to convert it in the most efficient way to a TBytes. How can I do that ?
How to convert AnsiString to TBytes and vice versa?
6.6k views Asked by zeus At
2
I have an AnsiString and I need to convert it in the most efficient way to a TBytes. How can I do that ?
Assuming you want to retain the same encoding you can do this
In reverse it goes