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

Method Bytes

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

Bytes returns the contiguous set of bytes collected so far by Prepend/Append calls. The slice returned by Bytes will be modified by future Clear calls, so if you're planning on clearing this SerializeBuffer, you may want to copy Bytes somewhere safe first.

()

Source from the content-addressed store, hash-verified

85 // so if you're planning on clearing this SerializeBuffer, you may want to copy
86 // Bytes somewhere safe first.
87 Bytes() []byte
88 // PrependBytes returns a set of bytes which prepends the current bytes in this
89 // buffer. These bytes start in an indeterminate state, so they should be
90 // overwritten by the caller. The caller must only call PrependBytes if they

Callers 15

ExampleSerializeBufferFunction · 0.95
serializeASFFunction · 0.95
TestInformationElementFunction · 0.95
TestIPv4OverGREEncodeFunction · 0.95
TestGREChecksumFunction · 0.95
serializeFunction · 0.95
serializeRMCPFunction · 0.95
TestDHCPv6EncodeRequestFunction · 0.95
TestDHCPv6EncodeReplyFunction · 0.95

Implementers 1

Calls

no outgoing calls

Tested by 15

ExampleSerializeBufferFunction · 0.76
serializeASFFunction · 0.76
TestInformationElementFunction · 0.76
TestIPv4OverGREEncodeFunction · 0.76
TestGREChecksumFunction · 0.76
serializeFunction · 0.76
serializeRMCPFunction · 0.76
TestDHCPv6EncodeRequestFunction · 0.76
TestDHCPv6EncodeReplyFunction · 0.76