Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/encodeous/nylon
/ GetTCElement
Method
GetTCElement
polyamide/device/pools.go:111–113 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
109
}
110
111
func
(device *Device) GetTCElement() *TCElement {
112
return
device.pool.tcElements.Get().(*TCElement)
113
}
114
115
func
(device *Device) PutTCElement(elem *TCElement) {
116
elem.clearPointers()
Callers
3
NewTCElement
Method · 0.95
RoutineReadFromTUN
Method · 0.95
RoutineSequentialReceiver
Method · 0.80
Implementers
4
NativeTun
polyamide/tun/tun_linux.go
netTun
polyamide/tun/netstack/tun.go
chTun
polyamide/tun/tuntest/tuntest.go
fakeTUNDeviceSized
polyamide/device/device_test.go
Calls
1
Get
Method · 0.45
Tested by
no test coverage detected