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

Method PutInboundElement

polyamide/device/pools.go:125–128  ·  view source on GitHub ↗
(elem *QueueInboundElement)

Source from the content-addressed store, hash-verified

123}
124
125func (device *Device) PutInboundElement(elem *QueueInboundElement) {
126 elem.clearPointers()
127 device.pool.inboundElements.Put(elem)
128}
129
130func (device *Device) GetOutboundElement() *QueueOutboundElement {
131 return device.pool.outboundElements.Get().(*QueueOutboundElement)

Callers 3

flushInboundQueueMethod · 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 2

PutMethod · 0.80
clearPointersMethod · 0.45

Tested by

no test coverage detected