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