Audio-TagLib

 view release on metacpan or  search on metacpan

xs/tbytevector.xs  view on Meta::CPAN

	RETVAL

bool 
TagLib::ByteVector::containsAt(pattern, offset, patternOffset=0, patternLength=0xffffffff)
	TagLib::ByteVector *pattern
	unsigned int offset
	unsigned int patternOffset
	unsigned int patternLength
CODE:
	RETVAL = THIS->containsAt(*pattern, offset, 
		patternOffset, patternLength);
OUTPUT:
	RETVAL

bool 
TagLib::ByteVector::startsWith(pattern)
	TagLib::ByteVector *pattern
CODE:
	RETVAL = THIS->startsWith(*pattern);
OUTPUT:
	RETVAL

bool 
TagLib::ByteVector::endsWith(pattern)
	TagLib::ByteVector *pattern
CODE:
	RETVAL = THIS->endsWith(*pattern);
OUTPUT:
	RETVAL

int 
TagLib::ByteVector::endsWithPartialMatch(pattern)
	TagLib::ByteVector *pattern
CODE:
	RETVAL = THIS->endsWithPartialMatch(*pattern);
OUTPUT:
	RETVAL

void 
TagLib::ByteVector::append(v)
	TagLib::ByteVector *v
CODE:
	THIS->append(*v);

void 
TagLib::ByteVector::clear()
CODE:
	THIS->clear();

unsigned int 
TagLib::ByteVector::size()
CODE:
	RETVAL = THIS->size();
OUTPUT:
	RETVAL

void 
TagLib::ByteVector::resize(size, padding = 0)
	unsigned int size
	char padding
PPCODE:
	(void)THIS->resize(size, padding);
	XSRETURN(1);

TagLib::ByteVector::Iterator * 
TagLib::ByteVector::begin() 
CODE:
	RETVAL = new TagLib::ByteVector::Iterator(THIS->begin());
OUTPUT:
	RETVAL

################################################################
#
# ConstIterator TagLib::ByteVector::begin() const
# not exported
# <code>typedef std::vector<char>::const_iterator ConstIterator;
# </code>
#
################################################################

TagLib::ByteVector::Iterator * 
TagLib::ByteVector::end()
CODE:
	RETVAL = new TagLib::ByteVector::Iterator(THIS->end());
OUTPUT:
	RETVAL

################################################################
#
# ConstIterator TagLib::ByteVector::end() const
# not exported
# 
################################################################

bool 
TagLib::ByteVector::isNull()
CODE:
	RETVAL = THIS->isNull();
OUTPUT:
	RETVAL

bool 
TagLib::ByteVector::isEmpty()
CODE:
	RETVAL = THIS->isEmpty();
OUTPUT:
	RETVAL

unsigned int 
TagLib::ByteVector::checksum()
CODE:
	RETVAL = THIS->checksum();
OUTPUT:
	RETVAL

unsigned int 
TagLib::ByteVector::toUInt(mostSignificantByteFirst = true)
	bool mostSignificantByteFirst
CODE:
	RETVAL = THIS->toUInt(mostSignificantByteFirst);
OUTPUT:

xs/tbytevector.xs  view on Meta::CPAN

	TagLib::ByteVector *v
	bool swap
CODE:
	RETVAL = THIS->operator<(*v);
OUTPUT:
	RETVAL

################################################################
# 
# THIS IS A NEW ADDED PRIVATE SYMBOL
# which implements
# bool TagLib::ByteVector::operator>(const ByteVector &v) const
# 
# CAUTION!!
# PARAM swap IS REQUIRED FOR OVERLOAD OP IN PERL
# refer to ByteVector.pm
# 
################################################################
bool 
TagLib::ByteVector::_greatThan(v, swap = false)
	TagLib::ByteVector *v
	bool swap
CODE:
	RETVAL = THIS->operator>(*v);
OUTPUT:
	RETVAL

################################################################
# 
# THIS IS A NEW ADDED PRIVATE SYMBOL
# which implements
# bool TagLib::ByteVector::operator+(const ByteVector &v) const
# 
# CAUTION!!
# PARAM swap IS REQUIRED FOR OVERLOAD OP IN PERL
# refer to ByteVector.pm
# 
################################################################
TagLib::ByteVector *
TagLib::ByteVector::_add(v, swap = false)
	TagLib::ByteVector *v
	bool swap
INIT:
	TagLib::ByteVector tmp = THIS->operator+(*v);
CODE:
	//RETVAL = new TagLib::ByteVector(tmp.data());
	RETVAL = new TagLib::ByteVector(tmp);
OUTPUT:
	RETVAL

################################################################
# 
# THIS IS A NEW ADDED PRIVATE SYMBOL
# which implements
# ByteVector & operator=(const ByteVector &v)
# 
################################################################
void  
TagLib::ByteVector::copy(v)
	TagLib::ByteVector * v
PPCODE:
	(void)THIS->operator=(*THIS);
	XSRETURN(1);

################################################################
# 
# STATIC PUBLIC MEMBER FUNCTIONS
# 
################################################################
static TagLib::ByteVector * 
TagLib::ByteVector::fromUInt(value, mostSignificantByteFirst=true)
	unsigned int value
	bool mostSignificantByteFirst
INIT:
	TagLib::ByteVector tmp = TagLib::ByteVector::fromUInt(value, 
		mostSignificantByteFirst);
CODE:
	//RETVAL = new TagLib::ByteVector(tmp.data());
	RETVAL = new TagLib::ByteVector(tmp);
OUTPUT:
	RETVAL

static TagLib::ByteVector * 
TagLib::ByteVector::fromShort(value, mostSignificantByteFirst=true)
	short value
	bool mostSignificantByteFirst
INIT:
	TagLib::ByteVector tmp = TagLib::ByteVector::fromShort(value, 
		mostSignificantByteFirst);
CODE:
	//RETVAL = new TagLib::ByteVector(tmp.data());
	RETVAL = new TagLib::ByteVector(tmp);
OUTPUT:
	RETVAL

static TagLib::ByteVector * 
TagLib::ByteVector::fromLongLong(value, mostSignificantByteFirst=true)
	long long value
	bool mostSignificantByteFirst
INIT:
	TagLib::ByteVector tmp = TagLib::ByteVector::fromLongLong(
		value, mostSignificantByteFirst);
CODE:
	//RETVAL = new TagLib::ByteVector(tmp.data());
	RETVAL = new TagLib::ByteVector(tmp);
OUTPUT:
	RETVAL

static TagLib::ByteVector * 
TagLib::ByteVector::fromCString(s, length=0xffffffff)
	const char *s
	unsigned int length
INIT:
	TagLib::ByteVector tmp = TagLib::ByteVector::fromCString(
		s, length);
CODE:
	//RETVAL = new TagLib::ByteVector(tmp.data());
	RETVAL = new TagLib::ByteVector(tmp);
OUTPUT:
	RETVAL

################################################################
# 
# STATIC PUBLIC ATTRIBUTES
# 
################################################################
static TagLib::ByteVector * 
TagLib::ByteVector::null()
CODE:
	/*!
	 * MUST declare as static or will cause a segfault
	 * 
	 * from perl 5.8 a module can keep a static data
	 * but it is global for MODULE not PACKAGE
	 * just wrap the static object as a sub here
	 */
	//RETVAL = new TagLib::ByteVector(TagLib::ByteVector::null);
	RETVAL = &(TagLib::ByteVector::null);
OUTPUT:
	RETVAL

################################################################
# 
# PROTECTED MEMBER FUNCTIONS
# 
# void TagLib::ByteVector::detach()
# no spec found
# 
################################################################
# not exported
#void 
#TagLib::ByteVector::detach()
#CODE:
#	THIS->detach();

################################################################
# 
# SPECIAL MEMBER FUNCTIONS
# 
# for special use in Perl
# 
################################################################

################################################################
# 
# return the memory address of instance 
# 
################################################################
void 
TagLib::ByteVector::_memoAddress()
PREINIT:
	char strAddress[512];
PPCODE:
	sprintf(strAddress, "%#u", THIS);
	ST(0) = newSVpv(strAddress, 0);
	sv_2mortal(ST(0));
	XSRETURN(1);



( run in 1.578 second using v1.01-cache-2.11-cpan-71847e10f99 )