func (sts *SimpleTxnSubmitter) translateRoll(outgoingSeg *capn.Segment, referencesInNeedOfPositions *[]*msgs.VarIdPos, action *msgs.Action, clientAction *cmsgs.ClientAction) { action.SetRoll() clientRoll := clientAction.Roll() roll := action.Roll() roll.SetVersion(clientRoll.Version()) roll.SetValue(clientRoll.Value()) clientReferences := clientRoll.References() references := msgs.NewVarIdPosList(outgoingSeg, clientReferences.Len()) roll.SetReferences(references) copyReferences(&clientReferences, &references, referencesInNeedOfPositions) }