82 #ifndef Foam_UOListStream_H 83 #define Foam_UOListStream_H 123 buf_(buffer, nbytes),
164 buf_.pubseekpos(0, std::ios_base::out);
233 template<
int SizeMin>
258 #ifdef Foam_IOstream_extras 296 FixedList<char, N>& buffer,
304 template<
int SizeMin>
307 DynamicList<char,SizeMin>& buf,
Generic output stream using a standard (STL) stream.
const UList< char > list() const
Const UList access to the characters written (shallow copy).
A 1D vector of objects of type <T> with a fixed length <N>.
An OSstream attached to an unallocated external buffer.
stream_type stream_
The stream.
void printBufInfo(Ostream &os) const
virtual void print(Ostream &os) const
Print stream description to Ostream.
A simple container for options an IOstream can normally have.
label size() const
The current output position in the buffer, which is also the addressed list size. ...
constexpr IOstreamOption(streamFormat fmt=streamFormat::ASCII, compressionType comp=compressionType::UNCOMPRESSED) noexcept
Default construct (ASCII, UNCOMPRESSED, currentVersion) or construct with format, compression...
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects...
std::streamsize capacity() const
The buffer capacity.
label capacity() const
The current list output capacity.
UOListStreamAllocator(char *buffer, size_t nbytes)
Construct for character array and number of bytes.
An output streambuf for memory access.
UOListStream(char *buffer, size_t nbytes, IOstreamOption streamOpt=IOstreamOption())
Construct using specified buffer and number of bytes.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
An Ostream is an abstract base class for all output systems (streams, files, token lists...
void rewind()
Move to buffer start, clear errors.
OBJstream os(runTime.globalPath()/outputName)
Database for solution data, solver performance and other reduced data.
memorybuf::out buf_
The stream buffer.
const Vector< label > N(dict.get< Vector< label >>("N"))
An stream/stream-buffer allocator for external buffers.
streamFormat
Data format (ascii | binary)
void printBufInfo(Ostream &os) const
Some information about the output buffer position/capacity.
const UList< char > list() const
Const UList access to the characters written (shallow copy).
virtual void rewind()
Rewind the stream, clearing any old errors.
std::streamsize tellp() const
The buffer put position.
void setGood() noexcept
Set stream state to be good.
OSstream(const OSstream &)=default
Copy construct.