in reply to Re^5: XS efficient copy (SvCUR_set)
in thread XS efficient copy

SvCUR_set() only after the call to fill the allocated buffer had succeeded.

I like this idiom and I'm going to adopt it.

--
Marvin Humphrey
Rectangular Research ― http://www.rectangular.com