MCPcopy Create free account
hub / github.com/encodeous/nylon / Swap

Method Swap

polyamide/device/allowedips_rand_test.go:39–41  ·  view source on GitHub ↗
(i, j int)

Source from the content-addressed store, hash-verified

37}
38
39func (r SlowRouter) Swap(i, j int) {
40 r[i], r[j] = r[j], r[i]
41}
42
43func (r SlowRouter) Insert(addr []byte, cidr uint8, peer *Peer) SlowRouter {
44 for _, t := range r {

Callers 9

handlePeerLineMethod · 0.80
StopMethod · 0.80
RoutineTUNEventReaderMethod · 0.80
closeHandleMethod · 0.80
StopMethod · 0.80
StartMethod · 0.80
StopMethod · 0.80
StartMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected