func (self *Leveldb) Close() error { C.leveldb_close(self.cdb) C.leveldb_readoptions_destroy(self.read_options) C.leveldb_writeoptions_destroy(self.write_options) C.leveldb_cache_destroy(self.cache) return nil }
// Close deallocates the ReadOptions, freeing its underlying C struct. func (ro *ReadOptions) Close() { C.leveldb_readoptions_destroy(ro.Opt) }
func (option *Readoptions) Destroy_readoptions() { C.leveldb_readoptions_destroy(option.options) }