|
Elm
2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
21 #ifndef ELM_IO_BLOCK_IN_STREAM_H
22 #define ELM_IO_BLOCK_IN_STREAM_H
24 #include <elm/string/String.h>
25 #include <elm/string/CString.h>
26 #include <elm/io/InStream.h>
28 namespace elm {
namespace io {
40 inline const void *
block()
const {
return _block; }
41 inline int size()
const {
return _size; }
42 inline int mark()
const {
return off; }
46 inline void reset(
void) { off = 0; }
49 int read(
void *buffer,
int size)
override;
55 #endif // ELM_IO_BLOCK_IN_STREAM_H
void moveBackward(int size)
Definition: BlockInStream.h:45
void moveForward(int size)
Definition: BlockInStream.h:44
int mark() const
Definition: BlockInStream.h:42
BlockInStream(const void *block, int size)
Definition: io_BlockInStream.cpp:42
Definition: BlockInStream.h:31
int size() const
Definition: BlockInStream.h:41
void reset(void)
Definition: BlockInStream.h:46
const void * block() const
Definition: BlockInStream.h:40
void move(int mark)
Definition: BlockInStream.h:43
string str(const char *s)
Definition: String.h:150
int read() override
Definition: io_BlockInStream.cpp:139
Definition: InStream.h:29