Gnash  0.8.10
Functions
gnash::noseek_fd_adapter Namespace Reference

Functions

IOChannelmake_stream (int fd, const char *cachefilename=0)
 Returns a read-only IOChannel that fetches data from an file descriptor open for read.

Detailed Description

Code to use volatile (non-back-seekable) streams as IOChannel objects (which are seekable by definition) by storing read bytes in a temporary file.


Function Documentation

DSOEXPORT IOChannel * gnash::noseek_fd_adapter::make_stream ( int  fd,
const char *  cachefilename = 0 
)

Returns a read-only IOChannel that fetches data from an file descriptor open for read.

The caller owns the returned IOChannel.

Specify a cachefilename if you want to be able to access the full cache after deletion of the returned IOChannel.