func (trail *Trail) NextTimestamp() (uint64, bool) { event := C.tdb_cursor_next(trail.trail) if event == nil { return 0, true } return uint64(event.timestamp), false }
func (trail *Trail) NextEvent() *Event { event := C.tdb_cursor_next(trail.trail) if event == nil { return nil } else { return makeEvent(event, trail) } }