It is currently Tue Jan 19, 2021 7:57 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: PB_StringBasePosition and PB_StringBase
PostPosted: Fri Jan 01, 2016 2:33 am 
Offline
Enthusiast
Enthusiast

Joined: Sun Feb 22, 2015 2:33 am
Posts: 139
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!


Top
 Profile  
Reply with quote  
 Post subject: Re: PB_StringBasePosition and PB_StringBase
PostPosted: Wed Jan 06, 2016 2:11 am 
Offline
Enthusiast
Enthusiast

Joined: Sun Feb 22, 2015 2:33 am
Posts: 139
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.

_________________
Think Unicode!


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye