eolib - v2.0.1
    Preparing search index...

    Function interleave

    • Interleaves a sequence of bytes. When encrypting EO data, bytes are "woven" into each other.
      Used when encrypting packets and data files.

      Parameters

      • data: Uint8Array

        the data to interleave

      Returns void

      {0, 1, 2, 3, 4, 5} → {0, 5, 1, 4, 2, 3}
      

      This is an in-place operation.