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

Function NewSerializeBuffer

writer.go:119–121  ·  view source on GitHub ↗

NewSerializeBuffer creates a new instance of the default implementation of the SerializeBuffer interface.

()

Source from the content-addressed store, hash-verified

117// NewSerializeBuffer creates a new instance of the default implementation of
118// the SerializeBuffer interface.
119func NewSerializeBuffer() SerializeBuffer {
120 return &serializeBuffer{}
121}
122
123// NewSerializeBufferExpectedSize creates a new buffer for serialization, optimized for an
124// expected number of bytes prepended/appended. This tends to decrease the

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…