
iTunes::Sid::Atom - Apple iTunes database component interface

See iTunes::Sid documentation.

This module represents a chunk of data in Apple iTunes sid* format database files.

my $atm = iTunes::Sid::Atom( rbuf => \$buf, read_buffer_position => $position );
Create an atom object. rbuf => \$buf is a named argument which is a
reference to the memory buffer containing the atom.
read_buffer_position => $position is the offset in the buffer where the
atom's start for reading is located.
$atom->isContainer;
Overloaded for parent, to allow reading of atom types for container versus
non-container atoms during parsing.
$atom->isRootAtomType();
returns 1 if the atom is a root type, otherwise undef.
Returns the buffer location of the ending of the atom (the first byte position after the data's end)
Returns the version as string of 3 ints, as in version 3.4.5 or 0.0.1
Returns the first version field integer, so version 3.4.5 returns just 3
Returnsdata after the 12 byte version fields
Returns a 32 bit bigendian int after the 12 byte version string for a data atom


William Herrera ( wherrera@skylightview.com ).

Questions, feature requests and bug reports should go to <wherrera@skylightview.com>.

Copyright (c) 2008 William Herrera. All rights reserved. This program is restricted use but free software; you can redistribute it and/or modify it under the same terms as Perl itself, BUT with the same additional restrictions seen in the COPYRIGHT section of B<iTunes::Sid>.