16#ifndef MPS_MEMORY_FILE_STREAM_H_
17#define MPS_MEMORY_FILE_STREAM_H_
86 size_t readline (
char ** buffer,
size_t * length);
103 std::istringstream mInputStream;
The MemoryFileStream class provides an implementation of the abstract class AbstractInputStream that ...
Definition: memory-file-stream.h:61
int getchar()
Obtain a single character.
Definition: memory-file-stream.cpp:73
bool eof()
Implementation of the eof() method of AbstractInputStream.
Definition: memory-file-stream.cpp:67
size_t readline(char **buffer, size_t *length)
Implementation of the readline() method of the AbstractInputStream parent.
Definition: memory-file-stream.cpp:43
mps_memory_file_stream * mps_memory_file_stream_new(const char *source)
Allocate a new MemoryFileStream that will output the data pointed by source.
Definition: memory-file-stream.cpp:19
void mps_memory_file_stream_free(mps_memory_file_stream *stream)
Release the resources holded by a MemoryFileStream.
Definition: memory-file-stream.cpp:25
struct mps_memory_file_stream mps_memory_file_stream
C wrapper around MemoryFileStream.
Definition: memory-file-stream.h:29