Implement CopyFrom/CopyTo.