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

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

Serving Software Downloads in 976 Categories, Downloaded 30.067.495 Times

File::Format::RIFF 1.0.1

  Date Added: May 18, 2010  |  Visits: 1.232

File::Format::RIFF

Report Broken Link
Printer Friendly Version


Product Homepage
Download (131 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
FILE::FORMAT::RIFF RELATED
Libraries  -  Apache2::UploadProgress 0.2
Apache2::UploadProgress is Perl module to track the progress and give realtime feedback of file uploads. SYNOPSIS In Apache: PerlLoadModule Apache2::UploadProgress PerlPostReadRequestHandler Apache2::UploadProgress In your HTML form: <...
25.6 KB  
Libraries  -  File::Find::Rule::XPath 0.03
File::Find::Rule::XPath is a Perl module that contains rule to match on XPath expressions. SYNOPSIS use File::Find::Rule::XPath; my @files = File::Find::Rule->file ->name(*.dkb) ->xpath( //section/title[contains(., "Crustacean")] )...
4.1 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  -  App::Options 1.02
App::Options is Perl module to combine command line options, environment vars, and option file values (for program configuration). SYNOPSIS #!/usr/local/bin/perl use App::Options; # reads option values into %App::options by default # do...
33.79 KB  
Libraries  -  File::Slurp 9999.12
File::Slurp is a Perl module for efficient reading/writing of complete files. SYNOPSIS use File::Slurp; my $text = read_file( filename ) ; my @lines = read_file( filename ) ; write_file( filename, @lines ) ; use File::Slurp qw( slurp )...
26.62 KB  
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  -  File::LckPwdF 0.01
File::LckPwdF is a Perl module to lock and unlock the passwd and shadow files with lckpwdf and ulckpwdf. SYNOPSIS use File::LckPwdF; (lock_passwd(15)) || (die "Cant lock password file:n$! stopped"); # ... do stuff with the passwd file ......
5.12 KB  
Libraries  -  Audio::File::AudioProperties 0.10
Audio::File::AudioProperties is a Perl module that can abstract an audio files audio properties. Audio::File::AudioProperties is the base class for other file format independant audio property classes like Audio::File::Flac::AudioProperties or...
74.75 KB  
Libraries  -  File::chmod 0.31
File::chmod is a Perl module that implements symbolic and ls chmod modes. SYNOPSIS use File::chmod; # chmod takes all three types # these all do the same thing chmod(0666,@files); chmod("=rw",@files); chmod("-rw-rw-rw-",@files); # or...
8.19 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  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
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  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  wolfSSL 3.12.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...
2.73 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