Packages
libmagic
LibMagic
Magic
Magic
buffer
check
compile
errno
error
file
load
setflags
Magic
Object Hierarchy:
LibMagic.Magic
LibMagic.Magic
LibMagic.Magic
Description:
[
Compact
]
[
CCode
( cname =
"struct magic_set"
, cprefix =
"magic_"
, free_function =
"magic_close"
) ]
public
class
Magic
Namespace:
LibMagic
Package:
libmagic
Content:
Creation methods:
public
Magic
(
Flags
flags =
NONE
)
Methods:
public
unowned
string
?
buffer
(
void
* buffer,
size_t
length)
public
int
check
(
string
? filename =
null
)
public
int
compile
(
string
? filename =
null
)
public
int
errno
()
public
unowned
string
?
error
()
public
unowned
string
?
file
(
string
filename)
public
int
load
(
string
? filename =
null
)
public
int
setflags
(
int
flags)