Valid judgies whether the key directed by iter has the same prifix
()
| 86 | |
| 87 | // Valid judgies whether the key directed by iter has the same prifix |
| 88 | func (siter *SetIter) Valid() bool { |
| 89 | return siter.Iter.Key().HasPrefix(siter.Prefix) |
| 90 | } |
| 91 | |
| 92 | //newSet create new Set object |
| 93 | func newSet(txn *Transaction, key []byte) *Set { |
no outgoing calls