Packages
magic
Magic
Magic
errno
error
flags
Magic
buffer
check
compile
descriptor
file
list
load
Magic
Object Hierarchy:
Magic.Magic
Magic.Magic
Magic.Magic
Description:
[
SimpleType
]
[
CCode
( cname =
"magic_t"
, destroy_function =
"magic_close"
, lower_case_cprefix =
"magic_"
) ]
public
struct
Magic
Namespace:
Magic
Package:
magic
Content:
Properties:
public
int
errno
{
get
; }
public
string
?
error
{
get
; }
public
int
flags
{
set
; }
Creation methods:
public
Magic
(
Flags
flags =
NONE
)
Methods:
public
unowned
string
?
buffer
(
uint8
[]? buffer)
public
int
check
(
string
filename)
public
int
compile
(
string
filename)
public
unowned
string
?
descriptor
(
int
fd)
public
unowned
string
?
file
(
string
filename)
public
int
list
(
string
filename)
public
int
load
(
string
? filename =
null
)