@salvobee/crypto-vault
    Preparing search index...

    Function maybeDecompress

    • Decompress a byte array if it was previously marked as compressed.

      Parameters

      • u8: Uint8Array

        The data to decompress.

      • compressed: boolean

        Whether the payload is compressed.

      Returns Promise<Uint8Array<ArrayBufferLike>>

      The original, uncompressed bytes.

      If decompression bindings are not available while compressed is true.