MCPcopy Create free account
hub / github.com/ByteStorage/FlyDB / ListStructure

Struct ListStructure

structure/list.go:21–23  ·  view source on GitHub ↗

Due to the complexity of each operation is at least O(n) So we can directly use slice to implement the list at the bottom level If the implementation of the db is improved later, we need to switch to a linked list

Source from the content-addressed store, hash-verified

19// So we can directly use slice to implement the list at the bottom level
20// If the implementation of the db is improved later, we need to switch to a linked list
21type ListStructure struct {
22 db *engine.DB
23}
24
25type listNode struct {
26 Value interface{}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected