IFClite TypeScript API
    Preparing search index...

    Function compressSource

    • Split source into fixed-size blocks and deflate each one.

      A block is stored verbatim when deflating it does not shrink it. STEP files embed already-compressed payloads (base64 textures, for one), and without this a pathological source could compress to LARGER than it started -- which would make the whole feature impossible to gate on size honestly.

      Parameters

      • source: Uint8Array
      • OptionalblockSize: number

      Returns CompressedSource