Ejemplo n.º 1
0
// DestroyComparator deallocates a *C.leveldb_comparator_t.
//
// This is provided as a convienience to advanced users that have implemented
// their own comparators in C in their own code.
func DestroyComparator(cmp *C.leveldb_comparator_t) {
	C.leveldb_comparator_destroy(cmp)
}
Ejemplo n.º 2
0
func (cmp *Comparator) Close() {
	C.leveldb_comparator_destroy(cmp.Comparator)
}