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

Method SerializeTo

writer.go:38–38  ·  view source on GitHub ↗

SerializeTo writes this layer to a slice, growing that slice if necessary to make it fit the layer's data. Args: b: SerializeBuffer to write this layer on to. When called, b.Bytes() is the payload this layer should wrap, if any. Note that this layer can either prepend itself (common), append itse

(b SerializeBuffer, opts SerializeOptions)

Source from the content-addressed store, hash-verified

36 // LayerPayload. It just serializes based on struct fields, neither
37 // modifying nor using contents/payload.
38 SerializeTo(b SerializeBuffer, opts SerializeOptions) error
39 // LayerType returns the type of the layer that is being serialized to the buffer
40 LayerType() LayerType
41}

Callers 15

SerializeLayersFunction · 0.65
serializeASFFunction · 0.65
SerializeToMethod · 0.65
SerializeToMethod · 0.65
SerializeToMethod · 0.65
SerializeToMethod · 0.65
SerializeToMethod · 0.65
serializeFunction · 0.65
serializeRMCPFunction · 0.65
checkRADIUSFunction · 0.65
faliedRADIUSFunction · 0.65
TestGTPPacketFunction · 0.65

Implementers 15

GRElayers/gre.go
DHCPv6layers/dhcpv6.go
DHCPv4layers/dhcpv4.go
EAPOLlayers/eapol.go
EAPOLKeylayers/eapol.go
BFDlayers/bfd.go
RMCPlayers/rmcp.go
IPv4layers/ip4.go
IPv6layers/ip6.go
Loopbacklayers/loopback.go
ICMPv6Echolayers/icmp6msg.go
ICMPv6RouterSolicitationlayers/icmp6msg.go

Calls

no outgoing calls

Tested by 11

serializeASFFunction · 0.52
serializeFunction · 0.52
serializeRMCPFunction · 0.52
checkRADIUSFunction · 0.52
faliedRADIUSFunction · 0.52
TestGTPPacketFunction · 0.52
TestGTPPacketWithEHFunction · 0.52
serializeASFPresencePongFunction · 0.52
checkBFDFunction · 0.52
checkNTPFunction · 0.52
testEncodeDecodeDot1QFunction · 0.52