MCPcopy 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
111func (device *Device) GetTCElement() *TCElement {
112 return device.pool.tcElements.Get().(*TCElement)
113}
114
115func (device *Device) PutTCElement(elem *TCElement) {
116 elem.clearPointers()

Callers 3

NewTCElementMethod · 0.95
RoutineReadFromTUNMethod · 0.95

Implementers 4

NativeTunpolyamide/tun/tun_linux.go
netTunpolyamide/tun/netstack/tun.go
chTunpolyamide/tun/tuntest/tuntest.go
fakeTUNDeviceSizedpolyamide/device/device_test.go

Calls 1

GetMethod · 0.45

Tested by

no test coverage detected