Length returns the total number of items in the stack.
()
| 256 | |
| 257 | // Length returns the total number of items in the stack. |
| 258 | func (s *Stack) Length() uint64 { |
| 259 | return s.head - s.tail |
| 260 | } |
| 261 | |
| 262 | // Close closes the LevelDB database of the stack. |
| 263 | func (s *Stack) Close() error { |
no outgoing calls