MCPcopy Index your code
hub / github.com/google/gopacket / lazyPacket

Struct lazyPacket

packet.go:499–502  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

497// as are necessary to compute the return value for that function.
498// lazyPacket implements Packet and PacketBuilder.
499type lazyPacket struct {
500 packet
501 next Decoder
502}
503
504func (p *lazyPacket) NextDecoder(next Decoder) error {
505 if next == nil {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected