Insert CV info into *p.
number of bytes written, or that would be written if p==null
See Implementation
Insert CV info into *p.