(offset uint32)
| 34 | } |
| 35 | } |
| 36 | func (t *Trie) getNode(offset uint32) *node { |
| 37 | if offset == 0 { |
| 38 | return nil |
| 39 | } |
| 40 | data := t.buf.Data(int(offset)) |
| 41 | return (*node)(unsafe.Pointer(&data[0])) |
| 42 | } |
| 43 | |
| 44 | // Get would return the UID for the key. If the key is not found, it would return 0. |
| 45 | func (t *Trie) Get(key string) uint64 { |