summaryrefslogtreecommitdiff
path: root/main/php_memory_streams.h
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2002-03-17 23:50:31 +0000
committerMarcus Boerger <helly@php.net>2002-03-17 23:50:31 +0000
commit318dc3e52723664a5598980beb1dbbc894a035cb (patch)
tree71e30f17701d940e3b5ed28ff9d2822df7c0618c /main/php_memory_streams.h
parentd2d8762267de33b954363189b4ec710e70527a2a (diff)
downloadphp-git-318dc3e52723664a5598980beb1dbbc894a035cb.tar.gz
-added temporary streams
-added stream debug code #should be used from php_stream_make_seekable
Diffstat (limited to 'main/php_memory_streams.h')
-rw-r--r--main/php_memory_streams.h20
1 files changed, 19 insertions, 1 deletions
diff --git a/main/php_memory_streams.h b/main/php_memory_streams.h
index 0041433acf..f07b0d1c31 100644
--- a/main/php_memory_streams.h
+++ b/main/php_memory_streams.h
@@ -21,7 +21,25 @@
#include "php_streams.h"
-PHPAPI php_stream *php_memory_stream_create();
+#define php_stream_memory_create(mode) _php_stream_memory_create(mode STREAMS_REL_CC);
+#define php_stream_memory_open( mode, buf, length) _php_stream_memory_open( mode, buf, length STREAMS_REL_CC);
+#define php_stream_memory_get_buffer(stream, length) _hp_stream_memory_get_buffer(stream, length STREAMS_REL_CC);
+
+#define php_stream_temp_create(mode, max_memory_usage) _php_stream_temp_create(mode, max_memory_usage STREAMS_REL_CC);
+#define php_stream_temp_open( mode, max_memory_usage, buf, length) _php_stream_temp_open( mode, max_memory_usage, buf, length STREAMS_REL_CC);
+#define php_stream_temp_copy_buffer(stream, buffer) _php_stream_temp_copy_buffer(stream, bufferSTREAMS_REL_CC);
+
+
+PHPAPI php_stream *_php_stream_memory_create(int mode STREAMS_REL_CC);
+PHPAPI php_stream *_php_stream_memory_open( int mode, char *buf, size_t length STREAMS_REL_CC);
+PHPAPI char *_php_stream_memory_get_buffer(php_stream *stream, size_t *length STREAMS_REL_CC);
+
+PHPAPI php_stream *_php_stream_temp_create(int mode, size_t max_memory_usage STREAMS_REL_CC);
+PHPAPI php_stream *_php_stream_temp_open( int mode, size_t max_memory_usage, char *buf, size_t length STREAMS_REL_CC);
+PHPAPI size_t _php_stream_temp_copy_buffer(php_stream *stream, char **buffer STREAMS_REL_CC);
+
+#define TEMP_STREAM_DEFAULT 0
+#define TEMP_STREAM_READONLY 1
#endif