PB_StringBasePosition and PB_StringBase
PB_StringBasePosition and PB_StringBase
When using PureBasic's string functions the assembly source code produced by the compiler makes reference to the PB_StringBasePosition and PB_StringBase values. What are the definitions of these two items?
Think Unicode!
Re: PB_StringBasePosition and PB_StringBase
I am going to attempt to answer my own questions.
PB_StringBase contains an address pointing to the start (Base) of the string memory area.
PB_StringBasePosition contains an offset (Position) relative to the String Base address
To get the address of a string data item, the PB_SringBase and PB_StringBasePostion for the particular string data must be added.
PB_StringBase contains an address pointing to the start (Base) of the string memory area.
PB_StringBasePosition contains an offset (Position) relative to the String Base address
To get the address of a string data item, the PB_SringBase and PB_StringBasePostion for the particular string data must be added.
Think Unicode!