Compress-Raw-Bzip2
view release on metacpan or search on metacpan
const char *
bzlibversion()
void
new(className, appendOut=1, blockSize100k=1, workfactor=0, verbosity=0)
const char * className
int appendOut
int blockSize100k
int workfactor
int verbosity
PPCODE:
{
int err ;
deflateStream s ;
#if 0
/* if (trace) */
warn("in Compress::Raw::Bzip2::_new(items=%d,appendOut=%d, blockSize100k=%d, workfactor=%d, verbosity=%d\n",
items, appendOut, blockSize100k, workfactor, verbosity);
#endif
if ((s = InitStream() )) {
MODULE = Compress::Raw::Bunzip2 PACKAGE = Compress::Raw::Bunzip2
void
new(className, appendOut=1 , consume=1, small=0, verbosity=0, limitOutput=0)
const char* className
int appendOut
int consume
int small
int verbosity
int limitOutput
PPCODE:
{
int err = BZ_OK ;
inflateStream s ;
#if 0
if (trace)
warn("in _inflateInit(windowBits=%d, bufsize=%lu, dictionary=%lu\n",
windowBits, bufsize, (unsigned long)SvCUR(dictionary)) ;
#endif
if ((s = InitStream() )) {
fallback/constants.xs view on Meta::CPAN
dTARGET;
#endif
STRLEN len;
int type;
IV iv;
/* NV nv; Uncomment this if you need to return NVs */
/* const char *pv; Uncomment this if you need to return PVs */
INPUT:
SV * sv;
const char * s = SvPV(sv, len);
PPCODE:
/* Change this to constant(aTHX_ s, len, &iv, &nv);
if you need to return both NVs and IVs */
type = constant(aTHX_ s, len, &iv);
/* Return 1 or 2 items. First is error message, or undef if no error.
Second, if present, is found value */
switch (type) {
case PERL_constant_NOTFOUND:
sv = sv_2mortal(newSVpvf("%s is not a valid Bzip2 macro", s));
PUSHs(sv);
break;
( run in 0.709 second using v1.01-cache-2.11-cpan-71847e10f99 )