crash.software
Projects
Pull Requests
Issues
Builds
dolt
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
dolt
Files
🤬
Sign In
1c3fcbe5
ROOT
/
go
/
store
/
prolly
/
address_map.go
Search
History
170 lines
|
ISO-8859-1
|
4 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
AddressMap
addresses
:
tree
StaticMap
:
[stringSlice,
address
:
]
lexicographic
:
]
Count
()
:
(int, error)
Height
()
:
int
Node
()
:
tree.Node
HashOf
()
:
hash.Hash
Format
()
:
*types.NomsBinFormat
WalkAddresses
(ctx context.Context, cb tree.AddressCb)
:
error
WalkNodes
(ctx context.Context, cb tree.NodeCb)
:
error
Get
(ctx context.Context, name string)
:
(addr hash.Hash, err error)
Has
(ctx context.Context, name string)
:
(ok bool, err error)
IterAll
(ctx context.Context, cb func(name string, address hash.Hash) error)
:
error
Editor
()
:
AddressMapEditor
NewEmptyAddressMap
(ns tree.NodeStore)
:
(AddressMap, error)
NewAddressMap
(node tree.Node, ns tree.NodeStore)
:
(AddressMap, error)
stringSlice
address
lexicographic
Compare
(left, right stringSlice)
:
int
_
:
tree
AddressMapEditor
addresses
:
tree
MutableMap
:
[stringSlice,
address
:
]
lexicographic
:
]
Add
(ctx context.Context, name string, addr hash.Hash)
:
error
Update
(ctx context.Context, name string, addr hash.Hash)
:
error
Delete
(ctx context.Context, name string)
:
error
Flush
(ctx context.Context)
:
(AddressMap, error)
All occurrences
Please wait...
Page is in error, reload to recover