Esempio n. 1
0
// Seek moves the iterator pointer to the given position. This returns the new position rouded to the nearest PG.
func (ol *ObjectList) Seek(position uint32) uint32 {
	newPosition := C.uint32_t(position)
	ret := C.rados_objects_list_seek(ol.listContext, newPosition)
	return uint32(ret)
}
Esempio n. 2
0
func (iter *Iter) Seek(token IterToken) {
	C.rados_objects_list_seek(iter.ctx, C.uint32_t(token))
}