Use Cstruct.copyv here, as suggested by @avsm - thanks!