Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
p2p
go-p2p-xor
Commits
f2246d23
Commit
f2246d23
authored
Mar 25, 2020
by
Petar Maymounkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename package.
parent
d343883e
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
8 additions
and
8 deletions
+8
-8
add.go
add.go
+1
-1
add_test.go
add_test.go
+1
-1
equal.go
equal.go
+1
-1
intersect.go
intersect.go
+1
-1
intersect_test.go
intersect_test.go
+1
-1
key.go
key.go
+1
-1
xortrie.go
xortrie.go
+1
-1
xortrie_test.go
xortrie_test.go
+1
-1
No files found.
add.go
View file @
f2246d23
package
xor
trie
package
xor
// Add adds the key q to trie, returning a new trie.
// Add is immutable/non-destructive: The original trie remains unchanged.
...
...
add_test.go
View file @
f2246d23
package
xor
trie
package
xor
import
"testing"
...
...
equal.go
View file @
f2246d23
package
xor
trie
package
xor
func
XorTrieEqual
(
p
,
q
*
XorTrie
)
bool
{
switch
{
...
...
intersect.go
View file @
f2246d23
package
xor
trie
package
xor
// Intersect computes the intersection of the keys in p and q.
// p and q must be non-nil. The returned trie is never nil.
...
...
intersect_test.go
View file @
f2246d23
package
xor
trie
package
xor
import
"testing"
...
...
key.go
View file @
f2246d23
package
xor
trie
package
xor
import
"bytes"
...
...
xortrie.go
View file @
f2246d23
package
xor
trie
package
xor
// XorTrie is a trie for equal-length bit vectors, which stores values only in the leaves.
// XorTrie node invariants:
...
...
xortrie_test.go
View file @
f2246d23
package
xor
trie
package
xor
import
"testing"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment