How to use wasm-lz4 - 2 common examples

To help you get started, we’ve selected a few wasm-lz4 examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github cruise-automation / webviz / packages / webviz-core / src / dataProviders / BagDataProvider.js View on Github external
async initialize(extensionPoint: ExtensionPoint): Promise {
    const { bagPath, cacheSizeInBytes } = this._options;
    await decompress.isLoaded;

    if (bagPath.type === "remoteBagUrl") {
      extensionPoint.progressCallback({ fullyLoadedFractionRanges: [] });
      let approximateSize = 0;
      const fileReader = new BrowserHttpReader(bagPath.url);
      const remoteReader = new CachedFilelike({
        fileReader,
        cacheSizeInBytes: cacheSizeInBytes || 1024 * 1024 * 200, // 200MiB
        logFn: (message) => {
          log.info(`CachedFilelike: ${message}`);
        },
        keepReconnectingCallback: (reconnecting: boolean) => {
          extensionPoint.reportMetadataCallback({
            type: "updateReconnecting",
            reconnecting,
          });
github cruise-automation / webviz / packages / webviz-core / src / players / bag / BagDataProvider.worker.js View on Github external
initialize = async (initialize: InitializeMessage): Promise => {
    await decompress.isLoaded;
    this._bag = await open(initialize.bagPath);
  };

wasm-lz4

https://github.com/lz4/lz4 compiled to WebAssembly. For now only decompression is supported. PRs welcome!

Apache-2.0
Latest version published 3 years ago

Package Health Score

52 / 100
Full package analysis

Popular wasm-lz4 functions

Similar packages