IFClite TypeScript API
    Preparing search index...

    Function compressSourceInPlace

    • Switch a source to block-compressed storage, in place.

      Returns true when the source is now compressed (or already was), false when this build cannot swap it (an empty source, or one that is not the mutable accessor). THROWS when the payload does not describe these bytes -- swapping in a different source's blocks would corrupt every subsequent read silently, which is worth a crash rather than a false a caller might ignore.

      Exported as a function rather than a method on IfcSourceBytes deliberately: consumers must never see a source that can change shape under them, so the capability lives with whoever owns the load, not on the read interface every hook holds.

      Parameters

      Returns boolean