MCPcopy
hub / github.com/google/gopacket / decodeRMCP

Function decodeRMCP

layers/rmcp.go:161–170  ·  view source on GitHub ↗

decodeRMCP decodes the byte slice into an RMCP type, and sets the application layer to it.

(data []byte, p gopacket.PacketBuilder)

Source from the content-addressed store, hash-verified

159// decodeRMCP decodes the byte slice into an RMCP type, and sets the application
160// layer to it.
161func decodeRMCP(data []byte, p gopacket.PacketBuilder) error {
162 rmcp := &RMCP{}
163 err := rmcp.DecodeFromBytes(data, p)
164 p.AddLayer(rmcp)
165 p.SetApplicationLayer(rmcp)
166 if err != nil {
167 return err
168 }
169 return p.NextDecoder(rmcp.NextLayerType())
170}

Callers

nothing calls this directly

Calls 5

DecodeFromBytesMethod · 0.95
NextLayerTypeMethod · 0.95
AddLayerMethod · 0.65
SetApplicationLayerMethod · 0.65
NextDecoderMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…