MCPcopy Index your code
hub / github.com/celzero/firestack / decode

Method decode

intra/core/wire/parsed.go:163–184  ·  view source on GitHub ↗

Decode extracts data from the packet in b into q. It performs extremely simple packet decoding for basic IPv4 and IPv6 packet types. It extracts only the subprotocol id, IP addresses, and (if any) ports, and shouldn't need any memory allocation.

(b []byte, trunc bool)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

DecodeMethod · 0.95
DecodeTruncMethod · 0.95

Calls 2

decode4Method · 0.95
decode6Method · 0.95

Tested by

no test coverage detected