detail::SequencedOutputBuffer::write() refactoring.