MCPcopy Create free account

hub / github.com/Allenxuxu/ringbuffer / functions

Functions53 in github.com/Allenxuxu/ringbuffer

↓ 60 callersMethodLength
()
ring_buffer.go:347
↓ 43 callersMethodfree
()
ring_buffer.go:423
↓ 26 callersMethodBytes
Bytes 返回所有可读数据,此操作不会移动读指针,仅仅是拷贝全部数据
ring_buffer.go:373
↓ 21 callersMethodWrite
(p []byte)
ring_buffer.go:298
↓ 14 callersMethodIsFull
()
ring_buffer.go:390
↓ 13 callersMethodIsEmpty
()
ring_buffer.go:394
↓ 11 callersFunctionNew
New 返回一个初始大小为 size 的 RingBuffer
ring_buffer.go:24
↓ 10 callersMethodRead
(p []byte)
ring_buffer.go:239
↓ 9 callersMethodVirtualLength
VirtualLength 虚拟长度,虚读后剩余可读数据长度 VirtualXXX 系列配合使用
ring_buffer.go:105
↓ 6 callersMethodPeek
(len int)
ring_buffer.go:144
↓ 6 callersMethodRetrieve
(len int)
ring_buffer.go:127
↓ 5 callersMethodCapacity
()
ring_buffer.go:362
↓ 4 callersMethodReadByte
()
ring_buffer.go:281
↓ 4 callersMethodVirtualRead
VirtualRead 虚读,不移动 read 指针,需要配合 VirtualFlush 和 VirtualRevert 使用 VirtualXXX 系列配合使用
ring_buffer.go:66
↓ 4 callersMethodWriteByte
(c byte)
ring_buffer.go:330
↓ 4 callersFunctioncopyByte
(f, e []byte)
ring_buffer.go:438
↓ 2 callersFunctionGetFromPool
GetFromPool 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 a
pool.go:66
↓ 2 callersMethodPeekAll
()
ring_buffer.go:172
↓ 2 callersFunctionPutInPool
PutInPool 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:85
↓ 2 callersMethodReset
()
ring_buffer.go:398
↓ 2 callersMethodRetrieveAll
()
ring_buffer.go:120
↓ 2 callersMethodVirtualFlush
VirtualFlush 刷新虚读指针 VirtualXXX 系列配合使用
ring_buffer.go:51
↓ 2 callersMethodVirtualRevert
VirtualRevert 还原虚读指针 VirtualXXX 系列配合使用
ring_buffer.go:60
↓ 2 callersMethodmakeSpace
(len int)
ring_buffer.go:409
↓ 1 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:72
↓ 1 callersFunctionNewWithData
NewWithData 特殊场景使用,RingBuffer 会持有data,不会自己申请内存去拷贝
ring_buffer.go:33
↓ 1 callersMethodPeekUint16
()
ring_buffer.go:200
↓ 1 callersMethodPeekUint32
()
ring_buffer.go:213
↓ 1 callersMethodPeekUint64
()
ring_buffer.go:226
↓ 1 callersMethodPeekUint8
()
ring_buffer.go:187
↓ 1 callersMethodPut
Put releases byte buffer obtained via Get to the pool. The buffer mustn't be accessed after returning to the pool.
pool.go:90
↓ 1 callersMethodcalibrate
()
pool.go:104
↓ 1 callersFunctionindex
(n int)
pool.go:162
FunctionBenchmarkRingBuffer_Sync
(b *testing.B)
ring_buffer_benchmark_test.go:8
FunctionBenchmarkTestPool
(b *testing.B)
pool_test.go:8
FunctionExampleRingBuffer
()
example_test.go:5
MethodLen
()
pool.go:150
MethodLess
(i, j int)
pool.go:154
MethodString
()
ring_buffer.go:405
MethodSwap
(i, j int)
pool.go:158
FunctionTestCopyBytes
(t *testing.T)
ring_buffer_test.go:632
FunctionTestNewWithData
(t *testing.T)
ring_buffer_test.go:474
FunctionTestPool
(t *testing.T)
pool_test.go:18
FunctionTestRingBuffer_ByteInterface
(t *testing.T)
ring_buffer_test.go:329
FunctionTestRingBuffer_Bytes
(t *testing.T)
ring_buffer_test.go:642
FunctionTestRingBuffer_Peek
(t *testing.T)
ring_buffer_test.go:256
FunctionTestRingBuffer_PeekUintXX
(t *testing.T)
ring_buffer_test.go:587
FunctionTestRingBuffer_Read
(t *testing.T)
ring_buffer_test.go:177
FunctionTestRingBuffer_VirtualXXX
(t *testing.T)
ring_buffer_test.go:526
FunctionTestRingBuffer_Write
(t *testing.T)
ring_buffer_test.go:20
FunctionTestRingBuffer_interface
(t *testing.T)
ring_buffer_test.go:11
MethodWithData
(data []byte)
ring_buffer.go:40
MethodWriteString
(s string)
ring_buffer.go:366