Documentation ¶
Overview ¶
SPDX-License-Identifier: Apache 2.0 Copyright Copyright (c) 2022 NetLOX Inc <dipj@netlox.io>
Index ¶
Constants ¶
View Source
const ( TRIE_SUCCESS = 0 TRIE_ERR_GEN = -1 TRIE_ERR_EXISTS = -2 TRIE_ERR_NOENT = -3 TRIE_ERR_NOMEM = -4 TRIE_ERR_UNK = -5 TRIE_ERR_PREFIX = -6 )
View Source
const ( TRIE_JMP_LENGTH = 8 PREFIX_ARR_LEN = (1 << (TRIE_JMP_LENGTH + 1)) - 1 PREFIX_ARR_NBITS = ((PREFIX_ARR_LEN + TRIE_JMP_LENGTH) & ^TRIE_JMP_LENGTH) / TRIE_JMP_LENGTH PTR_ARR_LEN = (1 << TRIE_JMP_LENGTH) PTR_ARR_NBITS = ((PTR_ARR_LEN + TRIE_JMP_LENGTH) & ^TRIE_JMP_LENGTH) / TRIE_JMP_LENGTH )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TrieIterIntf ¶
type TrieRoot ¶
type TrieRoot struct {
// contains filtered or unexported fields
}
func (*TrieRoot) Trie2String ¶
func (t *TrieRoot) Trie2String(tf TrieIterIntf)
Click to show internal directories.
Click to hide internal directories.