|
Elm
2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
7 #ifndef ELM_IO_BLOCK_OUT_STREAM_H
8 #define ELM_IO_BLOCK_OUT_STREAM_H
10 #include <elm/io/OutStream.h>
11 #include <elm/alloc/DynBlock.h>
12 #include <elm/string/CString.h>
13 #include <elm/string/String.h>
15 namespace elm {
namespace io {
21 inline const char *
block(
void)
const {
return _block.
base(); }
22 inline int size(
void)
const {
return _block.
size(); }
30 virtual int write(
const char *buffer,
int size);
31 virtual int write(
char byte);
32 virtual int flush(
void);
40 #endif // ELM_IO_BLOCK_OUT_STREAM_H
int size(void) const
Definition: BlockOutStream.h:22
CString toCString(void)
Definition: io_BlockOutStream.cpp:112
virtual int flush(void)
Definition: io_BlockOutStream.cpp:101
virtual int write(const char *buffer, int size)
Definition: io_BlockOutStream.cpp:85
char * detach(void)
Definition: BlockOutStream.h:23
int size(void) const
Definition: DynBlock.h:21
char * detach(void)
Definition: DynBlock.h:27
const char * base(void) const
Definition: DynBlock.h:26
void setSize(int new_size)
Definition: DynBlock.h:24
Definition: OutStream.h:30
String toString(void)
Definition: io_BlockOutStream.cpp:122
void reset(void)
Definition: DynBlock.h:25
void setSize(int size)
Definition: BlockOutStream.h:25
void clear(void)
Definition: BlockOutStream.h:24
Definition: DynBlock.h:13
BlockOutStream(int size=4096, int inc=256)
Definition: BlockOutStream.h:20
const char * block(void) const
Definition: BlockOutStream.h:21
Definition: BlockOutStream.h:18