示例#1
0
文件: tdb.go 项目: traildb/traildb-go
func (trail *Trail) NextTimestamp() (uint64, bool) {
	event := C.tdb_cursor_next(trail.trail)
	if event == nil {
		return 0, true
	}
	return uint64(event.timestamp), false
}
示例#2
0
文件: tdb.go 项目: traildb/traildb-go
func (trail *Trail) NextEvent() *Event {
	event := C.tdb_cursor_next(trail.trail)
	if event == nil {
		return nil
	} else {
		return makeEvent(event, trail)
	}
}