id3math

package
v0.0.0-...-a962232 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesToInt

func BytesToInt(data []byte) int

func IntToBytes

func IntToBytes(n int) []byte

func IntToSyncSafe

func IntToSyncSafe(n int) []byte

func SyncSafeToInt

func SyncSafeToInt(data []byte) int

A sync safe integer is an integer represented in 4 bytes of data where the leading byte is always 0. This means that in 32 bits you can represent at most a 28 bit integer. The reason for this is because in the mp3 spec, 11 1-bits in a row indicate a synchronization point. Therefore, metadata must never have 11 1-bits in a row.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL