MCPcopy Create free account
hub / github.com/djherbis/buffer / Empty

Function Empty

buffer.go:40–42  ·  view source on GitHub ↗

Empty returns false iff buf.Len() == 0

(buf Buffer)

Source from the content-addressed store, hash-verified

38
39// Empty returns false iff buf.Len() == 0
40func Empty(buf Buffer) bool {
41 return buf.Len() == 0
42}
43
44// NewUnboundedBuffer returns a Buffer which buffers "mem" bytes to memory
45// and then creates file's of size "file" to buffer above "mem" bytes.

Callers 4

ReadMethod · 0.85
checkEmptyFunction · 0.85
ReadMethod · 0.85
DefragMethod · 0.85

Calls 1

LenMethod · 0.65

Tested by 1

checkEmptyFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…