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

Method GetMessageBuffer

polyamide/device/pools.go:100–102  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

98}
99
100func (device *Device) GetMessageBuffer() *[MaxMessageSize]byte {
101 return device.pool.messageBuffers.Get().(*[MaxMessageSize]byte)
102}
103
104func (device *Device) PutMessageBuffer(msg *[MaxMessageSize]byte) {
105 if msg == nil {

Callers 4

NewTCElementMethod · 0.95
NewOutboundElementMethod · 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