Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/valyala/bytebufferpool
/ Reset
Method
Reset
bytebuffer.go:109–111 ·
view source on GitHub ↗
Reset makes ByteBuffer.B empty.
()
Source
from the content-addressed store, hash-verified
107
108
// Reset makes ByteBuffer.B empty.
109
func
(b *ByteBuffer) Reset() {
110
b.B = b.B[:0]
111
}
Callers
4
BenchmarkByteBufferWrite
Function · 0.95
BenchmarkBytesBufferWrite
Function · 0.80
Put
Method · 0.80
TestByteBufferWriteTo
Function · 0.80
Calls
no outgoing calls
Tested by
3
BenchmarkByteBufferWrite
Function · 0.76
BenchmarkBytesBufferWrite
Function · 0.64
TestByteBufferWriteTo
Function · 0.64