43 #include "scip/scip.h"
45 #define SCIPSTREAMBUFFERSIZE 256
107 int available = std::min(in_avail(), request);
110 memcpy(dest + ndone, gptr(), available);
115 request -= available;
An std::streambuf that uses SCIP I/O routines (suitable for reading)
size_t g_buffer_size_
pointer to the get-buffer
#define SCIPSTREAMBUFFERSIZE
virtual int underflow()
the underflow function is responsible for the refilling of the buffer
bool close_on_exit_
size of the get-buffer
ScipStreamBuffer(SCIP *scip, SCIP_FILE *file, bool close_on_exit)
virtual std::streamsize xsgetn(char *dest, std::streamsize request)