MCPcopy
hub / github.com/deepflowio/deepflow / Bytes

Method Bytes

server/libs/utils/byte_buffer.go:44–46  ·  view source on GitHub ↗

返回所有Use调用过的[]byte

()

Source from the content-addressed store, hash-verified

42
43// 返回所有Use调用过的[]byte
44func (b *ByteBuffer) Bytes() []byte {
45 return b.buf[:b.offset]
46}
47
48func (b *ByteBuffer) Reset() {
49 b.offset = 0

Callers 15

TestByteBufferUseFunction · 0.95
TestByteBufferUseTwiceFunction · 0.95
TestByteBufferResetFunction · 0.95
CloneByteBufferFunction · 0.45
QueueForwardMethod · 0.45
decompressBufferMethod · 0.45
GeneratePacketFunction · 0.45
GobEncodeMethod · 0.45
RecvFromServerMultiFunction · 0.45
SendToServerFunction · 0.45

Calls

no outgoing calls

Tested by 5

TestByteBufferUseFunction · 0.76
TestByteBufferUseTwiceFunction · 0.76
TestByteBufferResetFunction · 0.76