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

Method PutInboundElementsContainer

polyamide/device/pools.go:78–84  ·  view source on GitHub ↗
(c *QueueInboundElementsContainer)

Source from the content-addressed store, hash-verified

76}
77
78func (device *Device) PutInboundElementsContainer(c *QueueInboundElementsContainer) {
79 for i := range c.elems {
80 c.elems[i] = nil
81 }
82 c.elems = c.elems[:0]
83 device.pool.inboundElementsContainer.Put(c)
84}
85
86func (device *Device) GetOutboundElementsContainer() *QueueOutboundElementsContainer {
87 c := device.pool.outboundElementsContainer.Get().(*QueueOutboundElementsContainer)

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 1

PutMethod · 0.80

Tested by

no test coverage detected