// Destroy deallocates the BlockBasedTableOptions object.
func (self *BlockBasedTableOptions) Destroy() {
	C.rocksdb_block_based_options_destroy(self.c)
	self.c = nil
	self.fp = nil
	self.cache = nil
	self.comp_cache = nil
}
示例#2
0
文件: options.go 项目: zackb/rocksdb
func (o *BlockBasedOptions) Close() {
	C.rocksdb_block_based_options_destroy(o.Opt)
}
示例#3
0
// Close deallocates the Options, freeing its underlying C struct.
func (o *Options) Close() {
	C.rocksdb_options_destroy(o.Opt)
	C.rocksdb_block_based_options_destroy(o.Bopt)
}
示例#4
0
// Close deallocates the TableOptions, freeing its underlying C struct.
func (o *TableOptions) Close() {
	C.rocksdb_block_based_options_destroy(o.Opt)
}
// Destroy deallocates the BlockBasedTableOptions object.
func (opts *BlockBasedTableOptions) Destroy() {
	C.rocksdb_block_based_options_destroy(opts.c)
	opts.c = nil
	opts.cache = nil
	opts.compCache = nil
}
// Release deallocates the BlockBasedTableOptions object.
func (o *BlockBasedTableOptions) Release() {
	C.rocksdb_block_based_options_destroy(o.c)
	o.c = nil
	o.cache = nil
	o.compCache = nil
}