Ejemplo n.º 1
0
func (sts *SimpleTxnSubmitter) translateRoll(outgoingSeg *capn.Segment, referencesInNeedOfPositions *[]*msgs.VarIdPos, action *msgs.Action, clientAction *msgs.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)
}