/// <summary> /// Enable compression of the key/data pairs stored in the database, /// using the specified compression and decompression functions. /// </summary> /// <param name="compression">The compression function</param> /// <param name="decompression">The decompression function</param> public void SetCompression(BTreeCompressDelegate compression, BTreeDecompressDelegate decompression) { compressionIsSet = true; compressFunc = compression; decompressFunc = decompression; }
/// <summary> /// Enable compression of the key/data pairs stored in the database, /// using the specified compression and decompression functions. /// </summary> /// <param name="compression">The compression function</param> /// <param name="decompression">The decompression function</param> public void SetCompression(BTreeCompressDelegate compression, BTreeDecompressDelegate decompression) { compressionIsSet = true; compressFunc = compression; decompressFunc = decompression; }
/// <summary> /// Enable compression of the key/data pairs stored in the database, /// using the default compression and decompression functions. /// </summary> /// <remarks> /// The default functions perform prefix compression on keys, and prefix /// compression on data items for duplicate keys. /// </remarks> public void SetCompression() { compressionIsSet = true; compressFunc = null; decompressFunc = null; }
/// <summary> /// Enable compression of the key/data pairs stored in the database, /// using the default compression and decompression functions. /// </summary> /// <remarks> /// The default functions perform prefix compression on keys, and prefix /// compression on data items for duplicate keys. /// </remarks> public void SetCompression() { compressionIsSet = true; compressFunc = null; decompressFunc = null; }