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

Function serializeASF

layers/asf_test.go:46–52  ·  view source on GitHub ↗
(asf *ASF)

Source from the content-addressed store, hash-verified

44}
45
46func serializeASF(asf *ASF) ([]byte, error) {
47 sb := gopacket.NewSerializeBuffer()
48 err := asf.SerializeTo(sb, gopacket.SerializeOptions{
49 FixLengths: true,
50 })
51 return sb.Bytes(), err
52}
53
54func TestASFSerializeTo(t *testing.T) {
55 table := []struct {

Callers 1

TestASFSerializeToFunction · 0.85

Calls 3

BytesMethod · 0.95
NewSerializeBufferFunction · 0.92
SerializeToMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…