Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 49.485.408 Times

File::Format::RIFF 1.0.1

  Date Added: May 18, 2010  |  Visits: 1.653

File::Format::RIFF

Report Broken Link
Printer Friendly Version


Product Homepage
Download (150 downloads)



File::Format::RIFF is a Perl module to Resource Interchange File Format/RIFF files. SYNOPSIS use File::Format::RIFF; open( IN, file ) or die "Could not open file: $!"; my ( $riff1 ) = File::Format::RIFF->read( *IN ); close( IN ); $riff1->dump; my ( $riff2 ) = new File::Format::RIFF( TYPE ); foreach my $chunk ( $riff1->data ) { next if ( $chunk->id eq LIST ); $riff2->addChunk( $chunk->id, $chunk->data ); } open( OUT, ">otherfile" ) or die "Could not open file: $!"; $riff2->write( *OUT ); close( OUT ); File::Format::RIFF provides an implementation of the Resource Interchange File Format. You can read, manipulate, and write RIFF files. CONSTRUCTORS $riff = new File::Format::RIFF( $type, $data ); Creates a new File::Format::RIFF object. $type is a four character code that identifies the type of this particular RIFF file. Certain types are defined to have a format, specifying which chunks must appear (e.g., WAVE files). If $type is not specified, it defaults to (four spaces). $data must be an array reference containing some number of RIFF lists and/or RIFF chunks. If $data is undef or not specified, then the new RIFF object is initialized empty. $riff = File::Format::RIFF->read( $fh, $filesize ); Reads and parses an existing RIFF file from the given filehandle $fh. An exception will be thrown if the file is not a valid RIFF file. $filesize controls one aspect of the file format checking -- if $filesize is not specified, then stat will be called on $fh to determine how much data to expect. You may explicitly specify how much data to expect by passing in that value as $filesize. In either case, the amount of data read will be checked to make sure it matches the amount expected. Otherwise, it will throw an exception. If you do not wish it to make this check, pass in undef for $filesize. Please note, if you wish to read an "in memory" filehandle, such as by doing this: open( $fh, <, $variable ), you may do so, but you must pass in length( $variable ) for $filesize, because filehandles opened this way to do not support the stat call. You may also use sockes for $fh. But if you do, you must either specify the amount of data expected by passing in a value for $filesize, or if you do not know ahead of time how much data to expect, you must pass in undef for $filesize. (An example of using sockets to read and write RIFF files is available with your File::Format::RIFF distribution, at eq/socketpair.pl.) METHODS $riff->read( $fh, $filesize ); The read constructor may also be used as a method. If used in this manner, then all existing data contained in $riff will be discarded, and replaced by the contents read from $fh. $riff->write( $fh ); Outputs a properly-formatted RIFF file to the given filehandle $fh..

Requirements: No special requirements
Platforms: Linux
Keyword: Data Fh File Fileformatriff Filesize Libraries Open Out Perl Module Read Resource Interchange File Resource Interchange File Format Riff File Will Be
Users rating: 0/10

License: Freeware Size: 9.22 KB
USER REVIEWS
More Reviews or Write Review


FILE::FORMAT::RIFF RELATED
Libraries  -  TeX::DVI 0.110
TeX::DVI is a Perl module to write out TeXs DVI (DeVice Independent) file. SYNOPSIS use TeX::DVI; use Font::TFM; my $dvi = new TeX::DVI "texput.dvi"; my $font = new_at Font::TFM "cmr10", 12 or die "Error loading cmr10 at 12 pt:...
9.22 KB  
Libraries  -  Pod::Hlp 1.02
Pod::Hlp is a Perl module that can convert POD data to formatted VMS HLP Help module text. SYNOPSIS use Pod::Hlp; pod2hlp("perlfunc.pod",$top_help_level,*Filehandle); Also: pod2hlp < input.pod Also: perl pod2hlb Pod::Hlp is a...
102.4 KB  
Libraries  -  pod2man 5.6.2
pod2man is a Perl module that can convert POD data to formatted *roff input. SYNOPSIS pod2man [--section=manext] [--release=version] [--center=string] [--date=string] [--fixed=font] [--fixedbold=font] [--fixeditalic=font]...
6 MB  
Libraries  -  Crypt::OpenSSL::SMIME 0.02
Crypt::OpenSSL::SMIME is a Perl module for signing and encrypting messages with S/MIME standard using OpenSSL libraries. SYNOPSIS use Crypt::OpenSSL::SMIME; $smime = new Crypt::OpenSSL::SMIME({ signer_from => sender@test.com, signer_cert =>...
25.6 KB  
Libraries  -  ExtUtils::Manifest 1.51
ExtUtils::Manifest is a Perl module that contains utilities to write and check a MANIFEST file. SYNOPSIS use ExtUtils::Manifest qw(...funcs to import...); mkmanifest(); my @missing_files = manicheck; my @skipped = skipcheck; my...
17.41 KB  
Libraries  -  Log::StdLog 0.0.3
Log::StdLog is a Perl module with a simple log file via a special filehandle. SYNOPSIS use Log::StdLog { level => warn, file => "$0.log" }; # Messages at the same or a higher level are logged... print {*STDLOG} error => "This error message...
7.17 KB  
Libraries  -  Graph::Writer::TGXML 0.01
Graph::Writer::TGXML is a Perl module used to write out directed graph as TouchGraph LinkBrowser XML. SYNOPSIS use Graph; use Graph::Writer::TGXML; $graph = Graph->new(); # add edges and nodes to the graph $writer =...
4.1 KB  
Libraries  -  What 1.01
What is a Perl module to find out about running services. SYNOPSIS $what = What->new( Host => my.domain.org, Port => 28, ); $what->mta; $what->mta_version; $what->mta_banner; The What class is interface to classes providing...
27.65 KB  
Modules  -  Improved TemporaryFile 1.1
This script allows a temporary file implementation that uses memory unless either capacity is breached or fileno is requested, at which point a real temporary file will be created and the relevant details returned.
 
Security Tools  -  Mince 1.0.0.2
This is an easy to use and very reliable text encryption tool - Right click a text file, select 'Mince-Encrypt', type a password and your file will be secure from unwanted prying eyes. Double-click to decrypt.
64 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 4.0.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
3.88 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB