Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
SWF::BinStream::File(3User Contributed Perl DocumentatiSWF::BinStream::File(3)

NAME
       SWF::BinStream::File - Read and write file as binary stream.

SYNOPSIS
	 use SWF::BinStream::File;

	 $read_file = SWF::BinStream::File::Read->new('test.swf');
	 $byte = $read_file->get_UI8;
	 ....
	 $read_file->close;

	 $write_file = SWF::BinStream::Write->new('new.swf');
	 $write_file->set_UI8($byte);
	 ....
	 $write_file->close;

DESCRIPTION
       SWF::BinStream::File module provides reading and	writing	binary files
       as a binary stream.

   SWF::BinStream::File::Read
       is a subclass of	SWF::BinStream::Read. You can get byte and bit data
       from files.

   METHODS
       You can use the methods of SWF::BinStream::Read except add_atream.

       SWF::BinStream::File::Read->new(	[ $file, $version ] )
	   creates a read stream connected with	$file.	$file is a file	name
	   or a	file handle.  $version is SWF version number.  Default is 5.

       $stream->open( $file )
	   opens another file and connect to the stream.  Even though the
	   previous file is automatically closed and the stream	is cleared,
	   $stream-_tell number	is continued.

       $stream->close
	   closes the file and clears the stream.

   SWF::BinStream::File::Write
       is a subclass of	SWF::BinStream::Write. You can write byte and bit data
       to a file.

   METHODS
       You can use the methods of SWF::BinStream::Write	except autoflush.

       SWF::BinStream::File::Write->new( [ $file, $version ] )
	   creates a stream writing to a file $file.  $file is a file name or
	   a file handle.  $version is SWF version number.  Default is 5.

       $stream->open( $file )
	   opens another file and connect to the stream.  The stream is
	   flushed and the previous file is closed.

       $stream->close
	   flushes the stream and closes the file.

COPYRIGHT
       Copyright 2001 Yasuhiro Sasama (ySas), <ysas@nmt.ne.jp>

       This library is free software; you can redistribute it and/or modify it
       under the same terms as Perl itself.

SEE ALSO
       SWF::BinStream

perl v5.32.0			  2020-08-08	       SWF::BinStream::File(3)

NAME | SYNOPSIS | DESCRIPTION | COPYRIGHT | SEE ALSO

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=SWF::BinStream::File&sektion=3&manpath=FreeBSD+12.2-RELEASE+and+Ports>

home | help