MCPcopy
hub / github.com/golang/net / RawExtension

Struct RawExtension

icmp/extension.go:155–157  ·  view source on GitHub ↗

A RawExtension represents a raw extension. A raw extension is excluded from message processing and can be used to construct applications such as protocol conformance testing.

Source from the content-addressed store, hash-verified

153// A raw extension is excluded from message processing and can be used
154// to construct applications such as protocol conformance testing.
155type RawExtension struct {
156 Data []byte // data
157}
158
159// Len implements the Len method of Extension interface.
160func (p *RawExtension) Len(proto int) int {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected