[fpc-pascal] Bookmark, TBookmarkStr, TBytes and BytesOf

LacaK lacak at zoznam.sk
Thu Aug 26 11:45:54 CEST 2021



>
> I have considered to convert the TBytes to AnsiString, but instead to 
> doing a research about AnsiString internals, or creating a function 
> that copies bytes in a loop, I supposed that there was already a 
> function to do that. I found BytesOf
> https://www.freepascal.org/docs-html/rtl/sysutils/bytesof.html
> The abstract is  "Return the bytes in a string", when in fact, 
> according with the text below,  it does the opposite, returns the 
> string in an array of bytes.
>
> Is there any function that move the bytes to an AnsiString?
>
AFAICS there is only 
https://www.freepascal.org/docs-html/rtl/sysutils/stringof.html
L.



More information about the fpc-pascal mailing list