Paul Sturm > File-Format-RIFF-0.9.1 > File::Format::RIFF::Chunk

Download:
File-Format-RIFF-0.9.1.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  2
Open  0
View Bugs
Report a bug
Module Version: 0.05   Source   Latest Release: File-Format-RIFF-1.0.1

NAME ^

File::Format::RIFF::Chunk - a single RIFF chunk

SYNOPSIS ^

   use File::Format::RIFF;

   my ( $chunk ) = new File::Format::RIFF::Chunk;
   $chunk->id( 'stuf' );
   $chunk->data( 'here is some stuff' );

   ... some $riff ...

   $riff->push( $chunk );

DESCRIPTION ^

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).

CONSTRUCTOR ^

my ( $chunk ) = new File::Format::RIFF::Chunk( $id, $data );

fixme

METHODS ^

my ( $id ) = $chunk->id;

fixme

$chunk->id( 'abcd' );

fixme

my ( $data ) = $chunk->data;

fixme

$chunk->data( $data );

fixme

my ( $size ) = $chunk->size;

fixme

$chunk->dump;

fixme

AUTHOR ^

Paul Sturm <sturm@branewave.com>