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>
9 #ifndef MEMORY_STREAM_HH
10 #define MEMORY_STREAM_HH
15 #include "libc-extension.hh"
16 #include "file-cookie.hh"
18 class Memory_out_stream
25 static lily_cookie_io_functions_t functions_;
26 static const int block_size_;
29 static ssize_t reader (void *, char *, size_t);
30 static ssize_t writer (void *, char const *, size_t);
31 static int seeker (void *, off64_t *, int);
32 static int cleaner (void *);
35 ~Memory_out_stream ();
36 FILE *get_file () const;
37 char const *get_string () const;
38 ssize_t get_length () const;
41 #endif /* MEMORY_STREAM_HH */