MCPcopy
hub / github.com/mongodb/node-mongodb-native / loadZstd

Function loadZstd

src/cmap/wire_protocol/compression.ts:149–153  ·  view source on GitHub ↗

* Load ZStandard if it is not already set.

()

Source from the content-addressed store, hash-verified

147 * Load ZStandard if it is not already set.
148 */
149function loadZstd() {
150 if (!zstd) {
151 zstd = getZstdLibrary();
152 }
153}
154
155const MESSAGE_HEADER_SIZE = 16;
156

Callers 2

compressFunction · 0.85
decompressFunction · 0.85

Calls 1

getZstdLibraryFunction · 0.90

Tested by

no test coverage detected