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