taglib-ts
    Preparing search index...

    Function updateChunkOffsets

    • Updates stco/co64/tfhd chunk offsets for all relevant atoms when a block is inserted or removed at insertOffset.

      Mirrors C++ updateChunkOffsets() in mp4nerochapterlist.cpp and mp4qtchapterlist.cpp.

      Parameters

      • stream: IOStream

        The file stream.

      • atoms: Mp4Atoms

        Freshly-parsed atom tree (after the structural change).

      • delta: number

        Size of the inserted/removed region (positive = inserted).

      • insertOffset: number

        File offset at which bytes were inserted/removed.

      Returns Promise<void>