Function isYazCompressed

  • Determines whether the given data buffer is compressed in Yaz0 or Yaz1 format by inspecting the first 4 bytes for the "Yaz0" or "Yaz1" magic sequence.

    Parameters

    • data: ArrayBuffer | Uint8Array<ArrayBufferLike>

      The data buffer (ArrayBuffer or Uint8Array) to inspect.

    Returns boolean

    True if the magic sequence matches, otherwise false.