File::Format::RIFF::Chunk - a single RIFF chunk
use File::Format::RIFF; my ( $chunk ) = new File::Format::RIFF::Chunk; $chunk->id( 'stuf' ); $chunk->data( 'here is some stuff' ); ... some $container ... $container->push( $chunk );
A File::Format::RIFF::Chunk is a single chunk of data in a RIFF file. It has an identifier and one piece of scalar data. The id must be a four character code, and the data can be any piece of scalar data you wish to store, in any format (it is treated as opaque binary data, so you must interpret it yourself).
File::Format::RIFF::Chunk
Creates a new File::Format::RIFF::Chunk object. $id is a four character code that identifies the type of data. If $id is not specified, it defaults to ' '. $data is a scalar, treated as opaque binary data. If $data is undef or not specified, it defaults to ''.
$id
' '
$data
Returns the id of <$chunk>.
Sets the id of $chunk. $id must be a four character code that identifies the type of data.
$chunk
Returns the data of $chunk.
Sets the data of $chunk. $data is treated as a piece of opaque binary data, not modified or interpreted in any way.
Returns the size (in bytes) of $chunk's data.
Prints a string representation of $chunk to STDOUT. If the data is larger than $max bytes, prints '[...]' instead of the actual data. If $max is not specified or undef, it defaults to 64.
$max
undef
Paul Sturm <sturm@branewave.com>
2 POD Errors
The following errors were encountered while parsing the POD:
'=item' outside of any '=over'
You forgot a '=back' before '=head1'
To install File::Format::RIFF, copy and paste the appropriate command in to your terminal.
cpanm
cpanm File::Format::RIFF
CPAN shell
perl -MCPAN -e shell install File::Format::RIFF
For more information on module installation, please visit the detailed CPAN module installation guide.