in reply to Re: XS Prepending space to an SVs PV
in thread XS Prepending space to an SVs PV
Getting and setting the length isn't the problem, especially as it is normally done for you. The problem is manipulating the combination of the 3 fields so that although the reality is
malloc'd space [ | | | |s|o|m|e| |d|a|t|a| |h|e|r|e|\0] ^ SV--->PVX---------------| CUR-------------->|..........................| = 15 LEN------|.....................................| = 19
which is the reverse situation to the normal thing whereby the extra space is at the end rather than the beginning; the rest of the codebase will respect these settings.
I've tried setting it up like this, but I get traps. I need to know whether I am setting it up wrong, or whether the rest of the codebase will always assume that CUR and LEN will start at the same place (ie. The same place pointed at by PVX)?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: XS Prepending space to an SVs PV
by vkon (Curate) on Apr 26, 2006 at 16:20 UTC |