10 Jun 2009 15:13:10 UTC
- Development release
- Distribution: Audio-TagLib
- Module version: 1.41
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (5)
- Testers (0 / 11 / 10)
- KwaliteeBus factor: 1
- License: perl_5
- Activity24 month
- Download (1.45MB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version
Audio::TagLib::ByteVectorList - A list of ByteVectors
use Audio::TagLib::ByteVectorList; my $i = Audio::TagLib::ByteVctorList->split( Audio::TagLib::ByteVector->new("Here I am"), Audio::TagLib::ByteVector->new(" ")); print $i->toByteVector()->data(), "\n"; # got "here I am"
A List specialization with some handy features useful for ByteVectors.
Construct an empty ByteVectorList.
- new(ByteVectorList $l)
Make a shallow, implicitly shared, copy of $l. Because this is implicitly shared, this method is lightweight and suitable for pass-by-value usage.
Destroys this ByteVectorList instance.
- ByteVector toByteVector(ByteVector $separator = " ")
Convert the ByteVectorList to a ByteVector separated by $separator. By default a space is used.
- ByteVectorList split(ByteVector $v, ByteVector $pattern, IV $byteAlign = 1) [static]
Splits the ByteVector $v into several strings at $pattern. This will not include the pattern in the returned ByteVectors.
- ByteVectorList split(ByteVector $v, ByteVector $pattern, IV byteAlign, IV max) [static]
Splits the ByteVector $v into several strings at $pattern. This will not include the pattern in the returned ByteVectors. $max is the maximum number of entries that will be separated. If $max for instance is 2 then a maximum of 1 match will be found and the vector will be split on that match.
None by default.
Dongxu Ma, <email@example.com>
Copyright (C) 2005 by Dongxu Ma
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.7 or, at your option, any later version of Perl 5 you may have available.
Module Install Instructions
To install Audio::TagLib, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Audio::TagLib
For more information on module installation, please visit the detailed CPAN module installation guide.