BufPrint adapter for a writable ResIntf.
Write through the embedded BufPrint and explicitly flush/check its return before destruction when output errors must be observed. Flush consumes its buffered bytes even when the resource write fails; no retry buffer remains.