Go to the documentation of this file.
64 #ifndef UIListStream_H
65 #define UIListStream_H
85 virtual public std::ios,
99 inline void reset(
char *buffer,
size_t nbytes)
107 this->pubseekpos(0, std::ios_base::in);
141 buf_(buffer, nbytes),
149 inline void reset(
char* buffer,
size_t nbytes)
176 inline label
size()
const
182 std::streampos
tellg()
const
190 buf_.pubseekpos(0, std::ios_base::in);
251 std::streampos
pos()
const
279 #ifdef Foam_IOstream_extras
296 const UList<char>& buffer,
309 const UList<char>& buf,
Similar to IStringStream but using an externally managed buffer for its input. This allows the input ...
UIListStream(const char *buffer, size_t nbytes, IOstreamOption streamOpt=IOstreamOption())
const T * cdata() const noexcept
void printBufInfo(Ostream &os) const
const UList< char > list() const
constexpr IOstreamOption(streamFormat fmt=streamFormat::ASCII, compressionType comp=compressionType::UNCOMPRESSED) noexcept
streamFormat format() const noexcept
static const versionNumber currentVersion
std::streamsize capacity() const
Generic input stream using a standard (STL) stream.
const UList< char > list() const
Istream & operator()() const
std::streampos tellg() const
A std::streambuf used for memory buffer streams such as UIListStream, UOListStream,...
void resetg(char *s, std::streamsize n)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
The IOstreamOption is a simple container for options an IOstream can normally have.
versionNumber version() const noexcept
OBJstream os(runTime.globalPath()/outputName)
void reset(char *buffer, size_t nbytes)
ISstream(std::istream &is, const string &streamName, IOstreamOption streamOpt=IOstreamOption())
void reset(char *buffer, size_t nbytes)
std::streamsize tellg() const
uiliststream(const char *buffer, size_t nbytes)
virtual void print(Ostream &os) const
UIListStreamAllocator(char *buffer, size_t nbytes)
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
std::streampos pos() const
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
void printBufInfo(Ostream &os) const