Documentation ¶
Index ¶
- Variables
- func Bit0(n int, p int, pad int) int
- func CHR16(charcode int) string
- func CountSetBits(n int) int
- func DEC16(str string, index int) int
- func Find_Lista_Listb(list1 []string, list2 []string) (bool, []string)
- func FlagSubstring(str string, si int, ei int) string
- func Flag_to_uint(str string) []uint32
- func MD5Hex(b *[]byte) string
- func TxtEncode(str string) ([]uint8, error)
- type BStr
- type Cache
- type Eviction
- type FrozenTrie
- func (ft *FrozenTrie) CreateUrlEncodedflag(fl []string) string
- func (ft *FrozenTrie) DNlookup(dn string, usr_flag string) (bool, []string)
- func (ft *FrozenTrie) FlagstoTag(flags []uint32) []string
- func (ft *FrozenTrie) LoadTag(filepath string) error
- func (ft *FrozenTrie) Lookup(word []uint8) (bool, []uint32)
- func (f *FrozenTrie) Sizes() string
- func (ft *FrozenTrie) Urlenc_to_flag(str string) []string
- type FrozenTrieNode
- type RankDirectory
Constants ¶
This section is empty.
Variables ¶
View Source
var BitsSetTable256 [256]int
View Source
var Debug = false
View Source
var L1 = 32 * 32
View Source
var L2 = 32
View Source
var MaskBottom = make(map[int][]uint16)
View Source
var MaskTop = make(map[int][]uint16)
View Source
var W = 16
Functions ¶
func CountSetBits ¶
func Flag_to_uint ¶
Types ¶
type Cache ¶
type FrozenTrie ¶
type FrozenTrie struct {
// contains filtered or unexported fields
}
func Build ¶
func Build(tdpath, rdpath, bcpath, ftpath string) (ftrie *FrozenTrie, err error)
func NewFrozenTrie ¶
func NewFrozenTrie(td *BStr, rdir *RankDirectory, nodeCount int, tagfile string) *FrozenTrie
func (*FrozenTrie) CreateUrlEncodedflag ¶
func (ft *FrozenTrie) CreateUrlEncodedflag(fl []string) string
func (*FrozenTrie) DNlookup ¶
func (ft *FrozenTrie) DNlookup(dn string, usr_flag string) (bool, []string)
func (*FrozenTrie) FlagstoTag ¶
func (ft *FrozenTrie) FlagstoTag(flags []uint32) []string
func (*FrozenTrie) LoadTag ¶
func (ft *FrozenTrie) LoadTag(filepath string) error
func (*FrozenTrie) Sizes ¶
func (f *FrozenTrie) Sizes() string
func (*FrozenTrie) Urlenc_to_flag ¶
func (ft *FrozenTrie) Urlenc_to_flag(str string) []string
type FrozenTrieNode ¶
type FrozenTrieNode struct {
// contains filtered or unexported fields
}
func NewFrozenTrieNode ¶
func NewFrozenTrieNode(ft *FrozenTrie, index int) *FrozenTrieNode
func (*FrozenTrieNode) String ¶
func (ftn *FrozenTrieNode) String() string
type RankDirectory ¶
func NewRankDir ¶
func NewRankDir(rd, td *BStr, numBits int, l1Size int, l2Size int) *RankDirectory
Click to show internal directories.
Click to hide internal directories.