Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/armon/circbuf
/ functions
Functions
15 in github.com/armon/circbuf
⨍
Functions
15
◇
Types & classes
1
↓ 15 callers
Method
Bytes
Bytes provides a slice of the bytes written. This slice should not be written to.
circbuf.go:69
↓ 8 callers
Method
Write
Write writes up to len(buf) bytes to the internal ring, overriding older data if necessary.
circbuf.go:34
↓ 7 callers
Function
NewBuffer
NewBuffer creates a new buffer of a given size. The size must be greater than 0.
circbuf.go:20
↓ 1 callers
Method
Reset
Reset resets the buffer so it has no content.
circbuf.go:84
↓ 1 callers
Method
TotalWritten
TotalWritten provides the total number of bytes written
circbuf.go:63
Method
Size
Size returns the size of the buffer
circbuf.go:58
Method
String
String returns the contents of the buffer as a string
circbuf.go:90
Function
TestBuffer_FullWrite
(t *testing.T)
circbuf_test.go:34
Function
TestBuffer_HugeWrite
(t *testing.T)
circbuf_test.go:77
Function
TestBuffer_Impl
(t *testing.T)
circbuf_test.go:9
Function
TestBuffer_LongWrite
(t *testing.T)
circbuf_test.go:55
Function
TestBuffer_ManySmall
(t *testing.T)
circbuf_test.go:99
Function
TestBuffer_MultiPart
(t *testing.T)
circbuf_test.go:123
Function
TestBuffer_Reset
(t *testing.T)
circbuf_test.go:157
Function
TestBuffer_ShortWrite
(t *testing.T)
circbuf_test.go:13