lazyPacket does lazy decoding on its packet data. On construction it does no initial decoding. For each function call, it decodes only as many layers as are necessary to compute the return value for that function. lazyPacket implements Packet and PacketBuilder.
| 497 | // as are necessary to compute the return value for that function. |
| 498 | // lazyPacket implements Packet and PacketBuilder. |
| 499 | type lazyPacket struct { |
| 500 | packet |
| 501 | next Decoder |
| 502 | } |
| 503 | |
| 504 | func (p *lazyPacket) NextDecoder(next Decoder) error { |
| 505 | if next == nil { |
nothing calls this directly
no outgoing calls
no test coverage detected