()
| 57 | } |
| 58 | |
| 59 | func (device *Device) NewOutboundElement() *QueueOutboundElement { |
| 60 | elem := device.GetOutboundElement() |
| 61 | elem.buffer = device.GetMessageBuffer() |
| 62 | elem.nonce = 0 |
| 63 | // keypair and peer were cleared (if necessary) by clearPointers. |
| 64 | return elem |
| 65 | } |
| 66 | |
| 67 | // clearPointers clears elem fields that contain pointers. |
| 68 | // This makes the garbage collector's life easier and |
no test coverage detected