コード例 #1
0
ファイル: options.go プロジェクト: zackb/rocksdb
// SetVerifyChecksums controls whether all data read with this ReadOptions
// will be verified against corresponding checksums.
//
// It defaults to false. See the LevelDB documentation for details.
func (ro *ReadOptions) SetVerifyChecksums(b bool) {
	C.rocksdb_readoptions_set_verify_checksums(ro.Opt, boolToUchar(b))
}
コード例 #2
0
ファイル: options_read.go プロジェクト: pavanka/gorocksdb
// If true, all data read from underlying storage will be
// verified against corresponding checksums.
// Default: false
func (self *ReadOptions) SetVerifyChecksums(value bool) {
	C.rocksdb_readoptions_set_verify_checksums(self.c, boolToChar(value))
}