SvCUR_set() only after the call to fill the allocated buffer had succeeded.
I like this idiom and I'm going to adopt it.
In reply to Re^6: XS efficient copy (SvCUR_set)
by creamygoodness
in thread XS efficient copy
by TheDauthi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |