MCPcopy Create free account

hub / github.com/cloudflare/buffer / functions

Functions29 in github.com/cloudflare/buffer

↓ 7 callersMethodInsert
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 callersMethodPop
Pop removes and returns the first record in the buffer
buffer.go:222
↓ 7 callersMethodreadmeta
()
buffer.go:54
↓ 5 callersFunctionNew
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 callersFunctionbenchBuffer
benchBuffer tests reading/writing count batches of size batch in sequential chunks with file capacity cap
buffer_test.go:325
↓ 3 callersFunctioninsert
(b *buffer.Buffer, val string)
example/main.go:14
↓ 3 callersMethodwritemeta
(m meta)
buffer.go:63
↓ 2 callersMethodAdvise
()
advise_linux.go:14
↓ 2 callersMethodread
(mutate bool)
buffer.go:160
↓ 2 callersFunctionremove
(b *buffer.Buffer)
example/main.go:20
↓ 1 callersFunctionGetLittleEndianUint32
(b []byte, offset int)
binary/binary.go:5
↓ 1 callersFunctionGetLittleEndianUint64
(b []byte, offset int)
binary/binary.go:13
↓ 1 callersFunctionPutLittleEndianUint32
(b []byte, offset int, v uint32)
binary/binary.go:9
↓ 1 callersFunctionPutLittleEndianUint64
(b []byte, offset int, v uint64)
binary/binary.go:17
↓ 1 callersMethodSize
()
buffer.go:226
↓ 1 callersFunctiondeserializeMeta
(meta []byte)
buffer.go:156
↓ 1 callersFunctionserializeMeta
serializeMeta returns the serialized form of the record
buffer.go:150
FunctionBenchmarkBuffer500MBCap1KBRec
(b *testing.B)
buffer_test.go:369
FunctionBenchmarkBuffer500MBCap1MBRec
(b *testing.B)
buffer_test.go:374
FunctionBenchmarkBuffer50KBCap100BRec
(b *testing.B)
buffer_test.go:364
FunctionBenchmarkBuffer50KBCap1KBRec
(b *testing.B)
buffer_test.go:359
MethodPeek
Peek reads the first record and returns it without removing it from the buffer.
buffer.go:217
FunctionTestAdvise
(t *testing.T)
buffer_test.go:273
FunctionTestAll
(t *testing.T)
buffer_test.go:26
FunctionTestErrors
(t *testing.T)
buffer_test.go:123
FunctionTestHelpers
(t *testing.T)
buffer_test.go:210
FunctionTestLittleEndian
(t *testing.T)
binary/binary_test.go:8
Functioninit
()
advise_linux.go:10
Functionmain
()
example/main.go:28