コード例 #1
0
ファイル: comparator.go プロジェクト: CowLeo/qdb
// 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)
}
コード例 #2
0
func (cmp *Comparator) Close() {
	C.leveldb_comparator_destroy(cmp.Comparator)
}