Archive-Raw
view release on metacpan or search on metacpan
xs/Entry.xs view on Meta::CPAN
MODULE = Archive::Raw PACKAGE = Archive::Raw::Entry
unsigned int
filetype (self, ...)
Entry self
CODE:
if (items > 1)
archive_entry_set_filetype (self->e, SvUV (ST (1)));
RETVAL = archive_entry_filetype (self->e);
OUTPUT: RETVAL
const char *
pathname (self, ...)
Entry self
CODE:
if (items > 1)
archive_entry_set_pathname (self->e, SvPV_nolen (ST (1)));
RETVAL = archive_entry_pathname (self->e);
OUTPUT: RETVAL
void
is_data_encrypted (self)
Entry self
PPCODE:
#if ARCHIVE_VERSION_NUMBER >= 3002000
if (archive_entry_is_data_encrypted (self->e))
XSRETURN_YES;
#else
croak ("this feature requires libarchive 3.2+");
#endif
XSRETURN_NO;
void
is_metadata_encrypted (self)
Entry self
PPCODE:
#if ARCHIVE_VERSION_NUMBER >= 3002000
if (archive_entry_is_metadata_encrypted (self->e))
XSRETURN_YES;
#else
croak ("this feature requires libarchive 3.2+");
#endif
XSRETURN_NO;
void
is_encrypted (self)
Entry self
PPCODE:
#if ARCHIVE_VERSION_NUMBER >= 3002000
if (archive_entry_is_encrypted (self->e))
XSRETURN_YES;
#else
croak ("this feature requires libarchive 3.2+");
#endif
XSRETURN_NO;
void
ctime_is_set (self)
Entry self
PPCODE:
if (archive_entry_ctime_is_set (self->e))
XSRETURN_YES;
XSRETURN_NO;
void
mtime_is_set (self)
Entry self
PPCODE:
if (archive_entry_mtime_is_set (self->e))
XSRETURN_YES;
XSRETURN_NO;
void
size_is_set (self)
Entry self
PPCODE:
if (archive_entry_size_is_set (self->e))
XSRETURN_YES;
XSRETURN_NO;
int
size (self, ...)
Entry self
CODE:
if (items > 1)
{
if (SvOK (ST (1)))
archive_entry_set_size (self->e, SvIV (ST (1)));
else
archive_entry_unset_size (self->e);
}
RETVAL = archive_entry_size (self->e);
OUTPUT: RETVAL
double
ctime (self, ...)
Entry self
PREINIT:
AV *result;
CODE:
if (items > 1)
{
if (SvOK (ST (1)))
archive_entry_set_ctime (self->e, SvUV (ST (1)), items > 2 ? SvIV (ST (2)) : 0);
else
archive_entry_unset_ctime (self->e);
}
double res = archive_entry_ctime (self->e);
res += archive_entry_ctime_nsec (self->e)/1000000000UL;
RETVAL = res;
OUTPUT: RETVAL
double
mtime (self, ...)
Entry self
PREINIT:
AV *result;
CODE:
if (items > 1)
{
if (SvOK (ST (1)))
archive_entry_set_mtime (self->e, SvUV (ST (1)), items > 2 ? SvIV (ST (2)) : 0);
else
archive_entry_unset_mtime (self->e);
}
( run in 0.902 second using v1.01-cache-2.11-cpan-71847e10f99 )