(item LIBP)
| 153 | } |
| 154 | |
| 155 | func (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 | |
| 169 | func (list *BLLs) ToList() (result [][][]byte) { |
| 170 | list.Range(func(bll *BLL) bool { |