Documentation
¶
Overview ¶
Package magic contains the file register and type matchers.
Index ¶
- func ANSIMatcher(buf []byte) bool
- func ANSIType() types.Type
- func ARJMatcher(buf []byte) bool
- func ARJType() types.Type
- func ArcSeaMatcher(buf []byte) bool
- func ArcSeaType() types.Type
- func DOSComMatcher(buf []byte) bool
- func DOSComType() types.Type
- func InterchangeMatcher(buf []byte) bool
- func InterchangeType() types.Type
- func PCXMatcher(buf []byte) bool
- func PCXType() types.Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ANSIMatcher ¶
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 ARJMatcher ¶
ARJMatcher matches ARJ compressed files developed by Robert Jung. See, http://fileformats.archiveteam.org/wiki/ARJ.
func ArcSeaMatcher ¶
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 DOSComMatcher ¶
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 ¶
DOSComType returns the MS-DOS command file type. The .com extension operates like an .exe executable file but is limited to 64KB.
func InterchangeMatcher ¶
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 ¶
InterchangeType returns the Interchange File Format (IFF) file type.
func PCXMatcher ¶
PCXMatcher matches ZSoft Corporation PCX (Personal Computer eXchange) files. See, http://fileformats.archiveteam.org/wiki/PCX.
Types ¶
This section is empty.