MCPcopy 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.
109func (b *ByteBuffer) Reset() {
110 b.B = b.B[:0]
111}

Callers 4

BenchmarkByteBufferWriteFunction · 0.95
PutMethod · 0.80
TestByteBufferWriteToFunction · 0.80

Calls

no outgoing calls

Tested by 3

BenchmarkByteBufferWriteFunction · 0.76
TestByteBufferWriteToFunction · 0.64