magic

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package magic contains the file register and type matchers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ANSIMatcher

func ANSIMatcher(buf []byte) bool

ANSIMatcher matches attempts to match ANSI escape sequences used in text files. Some BBS text files are prefixed with the reset sequence but are not ANSI encoded texts. For performance, this matcher only looks for reset plus the clean at the start of Amiga texts or incomplete bold or normal text graphics mode sequences for DOS art.

func ANSIType

func ANSIType() types.Type

ANSIType returns the ANSI text file type.

func ARJMatcher

func ARJMatcher(buf []byte) bool

ARJMatcher matches ARJ compressed files developed by Robert Jung. See, http://fileformats.archiveteam.org/wiki/ARJ.

func ARJType

func ARJType() types.Type

ARJType returns the ARJ compression file type.

func ArcSeaMatcher

func ArcSeaMatcher(buf []byte) bool

ArcSeaMatcher matches the ARC compression format created by System Enhancement Associates and used in the MS/PC-DOS and BBS communities. See, http://fileformats.archiveteam.org/wiki/ARC_(compression_format).

func ArcSeaType

func ArcSeaType() types.Type

ArcSeaType returns the ARC compression file type.

func DOSComMatcher

func DOSComMatcher(buf []byte) bool

DOSComMatcher matches MS-DOS executable files. It is not a totally reliable matcher but is a common technique. See, http://fileformats.archiveteam.org/wiki/DOS_executable_(.com).

func DOSComType

func DOSComType() types.Type

DOSComType returns the MS-DOS command file type. The .com extension operates like an .exe executable file but is limited to 64KB.

func InterchangeMatcher

func InterchangeMatcher(buf []byte) bool

InterchangeMatcher matches Interchange File Format (IFF) files. This is a generic matcher for IFF bitmap images originally created by Electronic Arts for use on Amiga systems in 1985. See, http://fileformats.archiveteam.org/wiki/IFF.

func InterchangeType

func InterchangeType() types.Type

InterchangeType returns the Interchange File Format (IFF) file type.

func PCXMatcher

func PCXMatcher(buf []byte) bool

PCXMatcher matches ZSoft Corporation PCX (Personal Computer eXchange) files. See, http://fileformats.archiveteam.org/wiki/PCX.

func PCXType

func PCXType() types.Type

PCXType returns the ZSoft Corporation PCX (Personal Computer eXchange) file type.

Types

This section is empty.

Jump to

Keyboard shortcuts

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