MCPcopy Create free account
hub / github.com/Allenxuxu/ringbuffer / String

Method String

ring_buffer.go:405–407  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

403}
404
405func (r *RingBuffer) String() string {
406 return fmt.Sprintf("Ring Buffer: \n\tCap: %d\n\tReadable Bytes: %d\n\tWriteable Bytes: %d\n\tBuffer: %s\n", r.size, r.Length(), r.free(), r.buf)
407}
408
409func (r *RingBuffer) makeSpace(len int) {
410 vlen := r.VirtualLength()

Callers

nothing calls this directly

Calls 2

LengthMethod · 0.95
freeMethod · 0.95

Tested by

no test coverage detected