taglib-ts
    Preparing search index...

    Synchsafe integer encoding/decoding for ID3v2.

    ID3v2 uses "synchsafe integers" where the most significant bit of each byte is always zero, giving 7 bits of data per byte. This avoids false MPEG sync signals (0xFF followed by a byte with bit 7 set) in the tag data.

    Index

    Constructors

    Methods

    • Decode a synchsafe integer to a normal unsigned number. Each byte contributes 7 bits. Up to 4 bytes are read (28 bits of data).

      If any byte has bit 7 set, the data is assumed to have been written by buggy software as a normal big-endian integer and is decoded accordingly.

      Parameters

      Returns number