PHP: struct php_stream_ops - Manual

downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

struct php_stream_wrapper struct php_stream_dirent

Last updated: Fri, 26 Jan 2007

view this page in

# struct php_stream_ops

struct php_stream_ops -- Holds member functions for a stream implementation

## Description

    typedef struct _php_stream_ops {
                 /* all streams MUST implement these operations */
                 size_t (*write)(php_stream *stream, const char *buf, size_t count TSRMLS_DC);
                 size_t (*read)(php_stream *stream, char *buf, size_t count TSRMLS_DC);
                 int (*close)(php_stream *stream, int close_handle TSRMLS_DC);
                 int (*flush)(php_stream *stream TSRMLS_DC);

                 const char *label; /* name describing this class of stream */

                 /* these operations are optional, and may be set to NULL if the stream does not
                  * support a particular operation */
                int (*seek)(php_stream *stream, off_t offset, int whence TSRMLS_DC);
                char *(*gets)(php_stream *stream, char *buf, size_t size TSRMLS_DC);
                int (*cast)(php_stream *stream, int castas, void **ret TSRMLS_DC);
                int (*stat)(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC);
            } php_stream_ops;

add a note User Contributed Notes
struct php_stream_ops
There are no user contributed notes for this page.
struct php_stream_wrapper struct php_stream_dirent

Last updated: Fri, 26 Jan 2007
show source | credits | stats | sitemap | contact | advertising | mirror sites
Copyright © 2001-2007 The PHP Group
All rights reserved.
This mirror generously provided by: Yahoo! Inc.
Last updated: Sat Mar 10 10:36:09 2007 PST