MCPcopy Create free account
hub / github.com/Monibuca/engine / Shift

Method Shift

util/pool.go:231–238  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

229}
230
231func (list *BLL) Shift() (item LIBP) {
232 if list == nil || list.Length == 0 {
233 return
234 }
235 item = list.List.Shift()
236 list.ByteLength -= item.Value.Len()
237 return
238}
239
240func (list *BLL) Clear() {
241 list.List.Clear()

Callers

nothing calls this directly

Calls 2

ShiftMethod · 0.65
LenMethod · 0.65

Tested by

no test coverage detected