Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cloudflare/buffer
/ functions
Functions
29 in github.com/cloudflare/buffer
⨍
Functions
29
◇
Types & classes
4
↓ 7 callers
Method
Insert
Insert inserts the data into the buffer Inserting data which will overflow the buffer fails Inserting does not overwrite any existing data inside the
buffer.go:80
↓ 7 callers
Method
Pop
Pop removes and returns the first record in the buffer
buffer.go:222
↓ 7 callers
Method
readmeta
()
buffer.go:54
↓ 5 callers
Function
New
New creates a new Buffer backed by the file given by filename. it's max capacity is set to the capacity given
buffer.go:235
↓ 4 callers
Function
benchBuffer
benchBuffer tests reading/writing count batches of size batch in sequential chunks with file capacity cap
buffer_test.go:325
↓ 3 callers
Function
insert
(b *buffer.Buffer, val string)
example/main.go:14
↓ 3 callers
Method
writemeta
(m meta)
buffer.go:63
↓ 2 callers
Method
Advise
()
advise_linux.go:14
↓ 2 callers
Method
read
(mutate bool)
buffer.go:160
↓ 2 callers
Function
remove
(b *buffer.Buffer)
example/main.go:20
↓ 1 callers
Function
GetLittleEndianUint32
(b []byte, offset int)
binary/binary.go:5
↓ 1 callers
Function
GetLittleEndianUint64
(b []byte, offset int)
binary/binary.go:13
↓ 1 callers
Function
PutLittleEndianUint32
(b []byte, offset int, v uint32)
binary/binary.go:9
↓ 1 callers
Function
PutLittleEndianUint64
(b []byte, offset int, v uint64)
binary/binary.go:17
↓ 1 callers
Method
Size
()
buffer.go:226
↓ 1 callers
Function
deserializeMeta
(meta []byte)
buffer.go:156
↓ 1 callers
Function
serializeMeta
serializeMeta returns the serialized form of the record
buffer.go:150
Function
BenchmarkBuffer500MBCap1KBRec
(b *testing.B)
buffer_test.go:369
Function
BenchmarkBuffer500MBCap1MBRec
(b *testing.B)
buffer_test.go:374
Function
BenchmarkBuffer50KBCap100BRec
(b *testing.B)
buffer_test.go:364
Function
BenchmarkBuffer50KBCap1KBRec
(b *testing.B)
buffer_test.go:359
Method
Peek
Peek reads the first record and returns it without removing it from the buffer.
buffer.go:217
Function
TestAdvise
(t *testing.T)
buffer_test.go:273
Function
TestAll
(t *testing.T)
buffer_test.go:26
Function
TestErrors
(t *testing.T)
buffer_test.go:123
Function
TestHelpers
(t *testing.T)
buffer_test.go:210
Function
TestLittleEndian
(t *testing.T)
binary/binary_test.go:8
Function
init
()
advise_linux.go:10
Function
main
()
example/main.go:28