MCPcopy Index your code
hub / github.com/plexdrive/plexdrive / NewStack

Function NewStack

chunk/stack.go:16–21  ·  view source on GitHub ↗

NewStack creates a new stack

(maxChunks int)

Source from the content-addressed store, hash-verified

14
15// NewStack creates a new stack
16func NewStack(maxChunks int) *Stack {
17 return &Stack{
18 items: list.New(),
19 maxSize: maxChunks,
20 }
21}
22
23// Len gets the number of items on the stack
24func (s *Stack) Len() int {

Callers 4

NewStorageFunction · 0.85
TestOOBFunction · 0.85
TestAddToStackFunction · 0.85
TestLenFunction · 0.85

Calls

no outgoing calls

Tested by 3

TestOOBFunction · 0.68
TestAddToStackFunction · 0.68
TestLenFunction · 0.68