Audio::TagLib::ByteVectorList - A list of ByteVectors


Audio-TagLib documentation  | view source Contained in the Audio-TagLib distribution.

Index


NAME

Top

Audio::TagLib::ByteVectorList - A list of ByteVectors

SYNOPSIS

Top

  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"

DESCRIPTION

Top

A List specialization with some handy features useful for ByteVectors.

new()

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.

DESTROY()

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.

EXPORT

None by default.

SEE ALSO

Top

Audio::TagLib

AUTHOR

Top

Dongxu Ma, <dongxu@cpan.org>

COPYRIGHT AND LICENSE

Top


Audio-TagLib documentation  | view source Contained in the Audio-TagLib distribution.