MCPcopy Create free account

hub / github.com/h2non/filetype / functions

Functions144 in github.com/h2non/filetype

↓ 15 callersFunctionMatch
Match infers the file type of a given buffer inspecting its magic numbers signature
match.go:21
↓ 6 callersFunctiondoMatchMap
(buf []byte, machers matchers.Map)
kind.go:74
↓ 4 callersFunctionGet
Get retrieves a Type by extension
types/types.go:15
↓ 3 callersFunctionIs
Is checks if a given buffer matches with the given file type extension
filetype.go:31
↓ 3 callersFunctionIsMIMESupported
IsMIMESupported checks if a given MIME type is supported
filetype.go:85
↓ 3 callersFunctionIsSupported
IsSupported checks if a given file extension is supported
filetype.go:70
↓ 3 callersFunctionMatchMap
MatchMap performs a file matching against a map of match functions
match.go:78
↓ 3 callersFunctionNewType
NewType creates a new Type
types/type.go:10
↓ 3 callersFunctionmsooxml
(buf []byte)
matchers/document.go:90
↓ 2 callersFunctionAddType
AddType registers a new file type
filetype.go:26
↓ 2 callersFunctionImage
Image tries to match a file as image type
kind.go:9
↓ 2 callersFunctionIsType
IsType checks if a given buffer matches with the given file type
filetype.go:45
↓ 2 callersFunctionMatchReader
MatchReader is convenient wrapper to Match() any Reader
match.go:55
↓ 2 callersFunctionNewMatcher
Create and register a new type matcher function
matchers/matchers.go:24
↓ 2 callersFunctioncompareBytes
(slice, subSlice []byte, startOffset int)
matchers/document.go:149
↓ 2 callersFunctioncontainsMatroskaSignature
(buf, subType []byte)
matchers/video.go:133
↓ 2 callersFunctionsplitMime
(s string)
types/split.go:5
↓ 1 callersFunctionAdd
Add registers a new type in the package
types/types.go:9
↓ 1 callersFunctionAddMatcher
AddMatcher registers a new matcher type
match.go:67
↓ 1 callersFunctionArchive
Archive tries to match a file as generic archive type
kind.go:53
↓ 1 callersFunctionAudio
Audio tries to match a file as audio type
kind.go:20
↓ 1 callersFunctionCR2
(buf []byte)
matchers/image.go:78
↓ 1 callersFunctionDex
Dex detects dalvik executable(DEX)
matchers/application.go:27
↓ 1 callersFunctionDocument
Document tries to match a file as document type
kind.go:64
↓ 1 callersFunctionFont
Font tries to match a file as text font type
kind.go:42
↓ 1 callersFunctionGetFtyp
GetFtyp returns the major brand, minor version and compatible brands of the ISO-BMFF data
matchers/isobmff/isobmff.go:19
↓ 1 callersFunctionGetType
GetType retrieves a Type by file extension
filetype.go:100
↓ 1 callersFunctionIsISOBMFF
IsISOBMFF checks whether the given buffer represents ISO Base Media File Format data
matchers/isobmff/isobmff.go:6
↓ 1 callersFunctionIsImage
IsImage checks if the given buffer is an image type
kind.go:14
↓ 1 callersFunctionIsMIME
IsMIME checks if a given buffer matches with the given MIME type
filetype.go:54
↓ 1 callersFunctionMatchFile
MatchFile infers a file type for a file
match.go:44
↓ 1 callersFunctionMatches
Matches checks if the given buffer matches with some supported file type
match.go:72
↓ 1 callersFunctionMatchesMap
MatchesMap is an alias to Matches() but using matching against a map of match functions
match.go:88
↓ 1 callersFunctionNewMIME
Creates a new MIME type
types/mime.go:11
↓ 1 callersFunctionVideo
Video tries to match a file as video type
kind.go:31
↓ 1 callersFunctioncheckMSOoml
(buf []byte, offset int)
matchers/document.go:166
↓ 1 callersFunctionregister
(matchers ...Map)
matchers/matchers.go:38
↓ 1 callersFunctionsearch
(buf []byte, start, rangeNum int)
matchers/document.go:183
FunctionAac
(buf []byte)
matchers/audio.go:71
FunctionAmr
(buf []byte)
matchers/audio.go:64
FunctionAr
(buf []byte)
matchers/archive.go:193
FunctionAvi
(buf []byte)
matchers/video.go:63
FunctionBenchmarkMatchDocx
(b *testing.B)
match_test.go:215
FunctionBenchmarkMatchDwg
(b *testing.B)
match_test.go:221
FunctionBenchmarkMatchGif
(b *testing.B)
match_test.go:191
FunctionBenchmarkMatchJpeg
(b *testing.B)
match_test.go:185
FunctionBenchmarkMatchMkv
(b *testing.B)
match_test.go:227
FunctionBenchmarkMatchPng
(b *testing.B)
match_test.go:197
FunctionBenchmarkMatchPptx
(b *testing.B)
match_test.go:209
FunctionBenchmarkMatchTar
(b *testing.B)
match_test.go:173
FunctionBenchmarkMatchWebm
(b *testing.B)
match_test.go:233
FunctionBenchmarkMatchXlsx
(b *testing.B)
match_test.go:203
FunctionBenchmarkMatchZip
(b *testing.B)
match_test.go:179
FunctionBmp
(buf []byte)
matchers/image.go:93
FunctionBz2
(buf []byte)
matchers/archive.go:101
FunctionCab
(buf []byte)
matchers/archive.go:148
FunctionCrx
(buf []byte)
matchers/archive.go:142
FunctionDcm
(buf []byte)
matchers/archive.go:225
FunctionDeb
(buf []byte)
matchers/archive.go:182
FunctionDey
Dey Optimized Dalvik Executable(ODEX)
matchers/application.go:37
FunctionDoc
reference: https://bz.apache.org/ooo/show_bug.cgi?id=111457
matchers/document.go:39
FunctionDocx
(buf []byte)
matchers/document.go:51
FunctionDwg
(buf []byte)
matchers/image.go:139
FunctionElf
(buf []byte)
matchers/archive.go:219
FunctionEot
(buf []byte)
matchers/archive.go:154
FunctionEpub
(buf []byte)
matchers/archive.go:63
FunctionExe
(buf []byte)
matchers/archive.go:118
FunctionFlac
(buf []byte)
matchers/audio.go:50
FunctionFlv
(buf []byte)
matchers/video.go:87
FunctionGet
Get is an alias to Match()
match.go:39
FunctionGif
(buf []byte)
matchers/image.go:67
FunctionGz
(buf []byte)
matchers/archive.go:96
FunctionHeif
(buf []byte)
matchers/image.go:118
FunctionIco
(buf []byte)
matchers/image.go:112
FunctionIsArchive
IsArchive checks if the given buffer is an archive type
kind.go:58
FunctionIsAudio
IsAudio checks if the given buffer is an audio type
kind.go:25
FunctionIsDocument
IsDocument checks if the given buffer is an document type
kind.go:69
FunctionIsExtension
IsExtension semantic alias to Is()
filetype.go:40
FunctionIsFont
IsFont checks if the given buffer is a font type
kind.go:47
FunctionIsVideo
IsVideo checks if the given buffer is a video type
kind.go:36
FunctionIso
(buf []byte)
matchers/archive.go:231
FunctionJpeg
(buf []byte)
matchers/image.go:37
FunctionJpeg2000
(buf []byte)
matchers/image.go:44
FunctionJxr
(buf []byte)
matchers/image.go:99
FunctionLz
(buf []byte)
matchers/archive.go:207
FunctionM4a
(buf []byte)
matchers/audio.go:37
FunctionM4v
(buf []byte)
matchers/video.go:31
FunctionMachO
(buf []byte)
matchers/archive.go:238
FunctionMatch3gp
(buf []byte)
matchers/video.go:126
FunctionMidi
(buf []byte)
matchers/audio.go:25
FunctionMkv
(buf []byte)
matchers/video.go:39
FunctionMov
(buf []byte)
matchers/video.go:53
FunctionMp3
(buf []byte)
matchers/audio.go:31
FunctionMp4
(buf []byte)
matchers/video.go:93
FunctionMpeg
(buf []byte)
matchers/video.go:80
FunctionNes
(buf []byte)
matchers/archive.go:136
FunctionOgg
(buf []byte)
matchers/audio.go:44
FunctionOtf
(buf []byte)
matchers/font.go:40
FunctionPdf
(buf []byte)
matchers/archive.go:112
FunctionPng
(buf []byte)
matchers/image.go:61
next →1–100 of 144, ranked by callers