MPSolve 3.2.1
Loading...
Searching...
No Matches
memory-file-stream.h File Reference

Implementation of a fmemopen-like stream. More...

#include <iostream>
#include <sstream>
#include <mps/mps.h>

Go to the source code of this file.

Classes

class  mps::MemoryFileStream
 The MemoryFileStream class provides an implementation of the abstract class AbstractInputStream that will stream the data contained in the area stored in memory. More...
 

Typedefs

typedef struct mps_memory_file_stream mps_memory_file_stream
 C wrapper around MemoryFileStream.
 

Functions

mps_memory_file_streammps_memory_file_stream_new (const char *source)
 Allocate a new MemoryFileStream that will output the data pointed by source. More...
 
void mps_memory_file_stream_free (mps_memory_file_stream *stream)
 Release the resources holded by a MemoryFileStream. More...
 

Detailed Description

Implementation of a fmemopen-like stream.

Function Documentation

◆ mps_memory_file_stream_free()

void mps_memory_file_stream_free ( mps_memory_file_stream stream)

Release the resources holded by a MemoryFileStream.

Parameters
streamThe MemoryFileStream to release.

◆ mps_memory_file_stream_new()

mps_memory_file_stream * mps_memory_file_stream_new ( const char *  source)

Allocate a new MemoryFileStream that will output the data pointed by source.

Parameters
sourceThe data that will be provided by the mps_memory_file_stream.