IsOfType checks whether the key is of the given type.
(typ byte)
| 356 | |
| 357 | // IsOfType checks whether the key is of the given type. |
| 358 | func (p ParsedKey) IsOfType(typ byte) bool { |
| 359 | switch typ { |
| 360 | case ByteCount, ByteCountRev: |
| 361 | return p.IsCountOrCountRev() |
| 362 | case ByteReverse: |
| 363 | return p.IsReverse() |
| 364 | case ByteIndex: |
| 365 | return p.IsIndex() |
| 366 | case ByteData: |
| 367 | return p.IsData() |
| 368 | default: |
| 369 | } |
| 370 | return false |
| 371 | } |
| 372 | |
| 373 | // SkipPredicate returns the first key after the keys corresponding to the predicate |
| 374 | // of this key. Useful when iterating in the reverse order. |
nothing calls this directly
no test coverage detected