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

Method Push

util/pool.go:155–167  ·  view source on GitHub ↗
(item LIBP)

Source from the content-addressed store, hash-verified

153}
154
155func (list *BLLs) Push(item LIBP) {
156 if list == nil {
157 return
158 }
159 if list.List.Length == 0 {
160 var bll BLL
161 bll.Push(item)
162 list.PushValue(&bll)
163 } else {
164 list.Pre.Value.Push(item)
165 list.ByteLength += item.Value.Len()
166 }
167}
168
169func (list *BLLs) ToList() (result [][][]byte) {
170 list.Range(func(bll *BLL) bool {

Callers

nothing calls this directly

Calls 4

PushMethod · 0.95
PushValueMethod · 0.95
PushMethod · 0.65
LenMethod · 0.65

Tested by

no test coverage detected