2 memory-stream.hh -- declare Memory_out_stream
4 source file of the GNU LilyPond music typesetter
6 (c) 2005 Han-Wen Nienhuys <hanwen@xs4all.nl>
10 #ifndef MEMORY_STREAM_HH
11 #define MEMORY_STREAM_HH
16 class Memory_out_stream
23 static cookie_io_functions_t functions_;
24 static const int block_size_;
26 static ssize_t reader (void*, char*, size_t);
27 static ssize_t writer (void*, const char*, size_t);
28 static int seeker (void*, off64_t *, int whence);
29 static int cleaner (void*);
33 ~Memory_out_stream ();
35 FILE *get_file () const;
36 char const *get_string() const;
37 ssize_t get_length () const;
40 #endif /* MEMORY_STREAM_HH */