20#ifndef MS_CACHE_STREAM_HPP
21#define MS_CACHE_STREAM_HPP
32namespace matrix_science
37 class MS_MASCOTRESFILE_API ms_cache_stream
41 virtual ~ms_cache_stream();
47 void reserve(
size_t byteCount);
48 unsigned getBytesAvailable()
const;
49 bool isOverExhausted()
const;
52 void add(
unsigned value);
53 void add(INT64 value);
54 void add(UINT64 value);
56 void add(
double value);
57 void add(
const char * value,
size_t length);
58 void add(
const char * value);
59 void add(
const std::string & value);
62 unsigned getUnsigned32();
64 UINT64 getUnsigned64();
67 std::string getString();
69 void addBytes(
const void * bytes,
size_t size);
70 void getBytes(
void * bytes,
size_t size);
72 const char * getBuffer()
const;
73 unsigned getBufferLength()
const;
80 std::vector<char> buffer_;
81 bool isOverExhausted_;
83 friend class ms_cache_file;
Wrapper for the public domain tinycdb package http://www.corpit.ru/mjt/tinycdb.html by Michael Tokare...
Definition: ms_tinycdb.hpp:124