Топ-100
Back

ⓘ Synchsafe integers appear in ID3 tags that are attached to an MP3 file. ID3 tag encodes the multiple data blocks. Some blocks that contain metadata about the co ..




                                     

ⓘ Synchsafe

Synchsafe integers appear in ID3 tags that are attached to an MP3 file.

ID3 tag encodes the multiple data blocks. Some blocks that contain metadata about the contents of the file variable in length and is encoded as synchsafe integers, to distinguish them from those in other blocks.

In synchsafe integer, the high bit of each byte is zero, making seven bits out of eight available. For example, a 32-bit synchsafe integer can only store 28 bits of information.

Examples:

%11111111 is encoded as a 16-bit synchsafe integer %00000001 01111111. %11111111 is encoded as a 24-bit synchsafe integer %00000011 01111111 01111111.

In the ID3 specifications require that multibyte numbers such as they are kept in the order of little endian, so the bytes will be ordered exactly as they are described in the above examples.