// copyThriftArg2KVIterator uses the CallFrame Arg2Iterator to make a
// deep-copy KeyValIterator.
copyThriftArg2KVIterator uses the CallFrame Arg2Iterator to make a
deep-copy KeyValIterator.
// copyThriftArg2KVIterator uses the CallFrame Arg2Iterator to make a // deep - copy KeyValIterator .
func copyThriftArg2KVIterator(f relay.CallFrame) (arg2.KeyValIterator, error) {
	kv := make(map[string]string)
	for iter, err := f.Arg2Iterator(); err == nil; iter, err = iter.Next() {
		kv[string(iter.Key())] = string(iter.Value())
	}
	return arg2.NewKeyValIterator(thriftarg2test.BuildKVBuffer(kv))
}
func copyThriftArg2KVIterator ( f relay . CallFrame ) ( arg2 . KeyValIterator , error ) { kv := make ( map [ string ] string ) for iter , err := f . Arg2Iterator ( ) ; err == nil ; iter , err = iter . Next ( ) { kv [ string ( iter . Key ( ) ) ] = string ( iter . Value ( ) ) } return arg2 . NewKeyValIterator ( thriftarg2test . BuildKVBuffer ( kv ) ) }
copyThriftArg2KVIterator uses the CallFrame Arg2Iterator to make a
deep-copy KeyValIterator.
copyThriftArg2KVIterator uses the CallFrame Arg2Iterator to make a deep - copy KeyValIterator .