magic

package
v0.0.0-prerelease Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsAA

func IsAA(filePath string) (bool, error)

func IsAEA

func IsAEA(filePath string) (bool, error)

func IsAEAData

func IsAEAData(rc io.Reader) (bool, error)

func IsAPFS

func IsAPFS(filePath string) (bool, error)

func IsBUND

func IsBUND(filePath string) (bool, error)

func IsDMG

func IsDMG(filePath string) (bool, error)

func IsEncryptedDMG

func IsEncryptedDMG(filePath string) (bool, error)

func IsFTAB

func IsFTAB(filename string) (bool, error)

func IsHFSPlus

func IsHFSPlus(filePath string) (bool, error)

func IsIm4p

func IsIm4p(filePath string) (bool, error)

func IsImg3

func IsImg3(filePath string) (bool, error)

func IsImg4

func IsImg4(filePath string) (bool, error)

func IsLZFSE

func IsLZFSE(data []byte) (bool, error)

func IsLZSS

func IsLZSS(data []byte) (bool, error)

func IsMachO

func IsMachO(filePath string) (bool, error)

func IsMachOData

func IsMachOData(dat []byte) (bool, error)

func IsMachoOrImg4

func IsMachoOrImg4(filePath string) (bool, error)

func IsPBZX

func IsPBZX(filePath string) (bool, error)

func IsPBZXData

func IsPBZXData(r io.Reader) (bool, error)

func IsXar

func IsXar(filePath string) (bool, error)

func IsZip

func IsZip(filePath string) (bool, error)

func IsZipData

func IsZipData(r io.Reader) (bool, error)

Types

type Asn1Header

type Asn1Header struct {
	Raw  asn1.RawContent
	Name string `asn1:"ia5"` // IM4P
}

type Magic

type Magic uint32
const (
	Magic32    Magic = 0xfeedface
	Magic64    Magic = 0xfeedfacf
	MagicFatBE Magic = 0xcafebabe
	MagicFatLE Magic = 0xbebafeca
	MagicZip   Magic = 0x504b0304
	MagicYAA1  Magic = 0x31414159 // "YAA1"
	MagicAA01  Magic = 0x31304141 // "AA01"
	MagicAEA1  Magic = 0x41454131 // "AEA1"
	MagicPBZX        = 0x70627a78 // "pbzx"
)

Jump to

Keyboard shortcuts

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