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

Method PrependBytes

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

PrependBytes returns a set of bytes which prepends the current bytes in this buffer. These bytes start in an indeterminate state, so they should be overwritten by the caller. The caller must only call PrependBytes if they know they're going to immediately overwrite all bytes returned.

(num int)

Source from the content-addressed store, hash-verified

90 // overwritten by the caller. The caller must only call PrependBytes if they
91 // know they're going to immediately overwrite all bytes returned.
92 PrependBytes(num int) ([]byte, error)
93 // AppendBytes returns a set of bytes which appends the current bytes in this
94 // buffer. These bytes start in an indeterminate state, so they should be
95 // overwritten by the caller. The caller must only call AppendBytes if they

Callers 15

ExampleSerializeBufferFunction · 0.95
SerializeToMethod · 0.65
SerializeToMethod · 0.65
SerializeToMethod · 0.65
SerializeToMethod · 0.65
SerializeToMethod · 0.65
SerializeToMethod · 0.65
SerializeToMethod · 0.65
SerializeToMethod · 0.65
SerializeToMethod · 0.65
SerializeToMethod · 0.65
SerializeToMethod · 0.65

Implementers 1

Calls

no outgoing calls

Tested by 1

ExampleSerializeBufferFunction · 0.76