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

Method PutOutboundElementsContainer

polyamide/device/pools.go:92–98  ·  view source on GitHub ↗
(c *QueueOutboundElementsContainer)

Source from the content-addressed store, hash-verified

90}
91
92func (device *Device) PutOutboundElementsContainer(c *QueueOutboundElementsContainer) {
93 for i := range c.elems {
94 c.elems[i] = nil
95 }
96 c.elems = c.elems[:0]
97 device.pool.outboundElementsContainer.Put(c)
98}
99
100func (device *Device) GetMessageBuffer() *[MaxMessageSize]byte {
101 return device.pool.messageBuffers.Get().(*[MaxMessageSize]byte)

Callers 6

flushOutboundQueueMethod · 0.95
SendKeepaliveMethod · 0.80
StagePacketsMethod · 0.80
SendStagedPacketsMethod · 0.80
FlushStagedPacketsMethod · 0.80

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