Set packed fields from object reference.