MCPcopy Create free account

hub / github.com/valyala/bytebufferpool / functions

Functions39 in github.com/valyala/bytebufferpool

↓ 11 callersFunctiontestIndex
(t *testing.T, n, expectedIdx int)
pool_test.go:26
↓ 5 callersFunctiontestGetPut
(t *testing.T, n int)
pool_test.go:79
↓ 4 callersMethodReset
Reset makes ByteBuffer.B empty.
bytebuffer.go:109
↓ 4 callersMethodWrite
Write implements io.Writer - it appends p to ByteBuffer.B
bytebuffer.go:72
↓ 4 callersMethodWriteString
WriteString appends s to ByteBuffer.B.
bytebuffer.go:88
↓ 3 callersFunctionGet
Get returns an empty byte buffer from the pool. Got byte buffer may be returned to the pool via Put call. This reduces the number of memory allocatio
pool.go:42
↓ 3 callersFunctionPut
Put returns byte buffer to the pool. ByteBuffer.B mustn't be touched after returning it to the pool. Otherwise data races will occur.
pool.go:62
↓ 2 callersMethodGet
Get returns new byte buffer with zero length. The byte buffer may be returned to the pool via Put after the use in order to minimize GC overhead.
pool.go:48
↓ 2 callersMethodPut
Put releases byte buffer obtained via Get to the pool. The buffer mustn't be accessed after returning to the pool.
pool.go:67
↓ 2 callersFunctionindex
(n int)
pool.go:139
↓ 2 callersFunctiontestByteBufferGetPut
(t *testing.T)
bytebuffer_test.go:92
↓ 2 callersFunctiontestByteBufferGetString
(t *testing.T)
bytebuffer_test.go:105
↓ 2 callersFunctiontestPoolVariousSizes
(t *testing.T)
pool_test.go:65
↓ 1 callersMethodBytes
Bytes returns b.B, i.e. all the bytes accumulated in the buffer. The purpose of this function is bytes.Buffer compatibility.
bytebuffer.go:67
↓ 1 callersMethodLen
Len returns the size of the byte buffer.
bytebuffer.go:20
↓ 1 callersMethodReadFrom
ReadFrom implements io.ReaderFrom. The function appends all the data read from r to b.
bytebuffer.go:27
↓ 1 callersMethodSetString
SetString sets ByteBuffer.B to s.
bytebuffer.go:99
↓ 1 callersMethodString
String returns string representation of ByteBuffer.B.
bytebuffer.go:104
↓ 1 callersMethodWriteTo
WriteTo implements io.WriterTo.
bytebuffer.go:59
↓ 1 callersFunctionallocNBytes
(dst []byte, n int)
pool_test.go:88
↓ 1 callersMethodcalibrate
()
pool.go:81
FunctionBenchmarkByteBufferWrite
(b *testing.B)
bytebuffer_timing_test.go:8
FunctionBenchmarkBytesBufferWrite
(b *testing.B)
bytebuffer_timing_test.go:21
FunctionExampleByteBuffer
()
bytebuffer_example_test.go:9
MethodLen
()
pool.go:127
MethodLess
(i, j int)
pool.go:131
MethodSet
Set sets ByteBuffer.B to p.
bytebuffer.go:94
MethodSwap
(i, j int)
pool.go:135
FunctionTestByteBufferGetPutConcurrent
(t *testing.T)
bytebuffer_test.go:73
FunctionTestByteBufferGetPutSerial
(t *testing.T)
bytebuffer_test.go:69
FunctionTestByteBufferGetStringConcurrent
(t *testing.T)
bytebuffer_test.go:121
FunctionTestByteBufferGetStringSerial
(t *testing.T)
bytebuffer_test.go:117
FunctionTestByteBufferReadFrom
(t *testing.T)
bytebuffer_test.go:11
FunctionTestByteBufferWriteTo
(t *testing.T)
bytebuffer_test.go:45
FunctionTestIndex
(t *testing.T)
pool_test.go:9
FunctionTestPoolCalibrate
(t *testing.T)
pool_test.go:33
FunctionTestPoolVariousSizesConcurrent
(t *testing.T)
pool_test.go:47
FunctionTestPoolVariousSizesSerial
(t *testing.T)
pool_test.go:43
MethodWriteByte
WriteByte appends the byte c to the buffer. The purpose of this function is bytes.Buffer compatibility. The function always returns nil.
bytebuffer.go:82