MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / quicklistGetLzf

Function quicklistGetLzf

src/quicklist.c:260–264  ·  view source on GitHub ↗

Extract the raw LZF data from this quicklistNode. * Pointer to LZF data is assigned to '*data'. * Return value is the length of compressed LZF data. */

Source from the content-addressed store, hash-verified

258 * Pointer to LZF data is assigned to '*data'.
259 * Return value is the length of compressed LZF data. */
260size_t quicklistGetLzf(const quicklistNode *node, void **data) {
261 quicklistLZF *lzf = (quicklistLZF *)node->zl;
262 *data = lzf->compressed;
263 return lzf->sz;
264}
265
266#define quicklistAllowsCompression(_ql) ((_ql)->compress != 0)
267

Callers 1

rdbSaveObjectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected