5 #include <libutl/BufferedFDstream.h> 6 #include <libutl/FileStream.h> 33 setStream(fileStream);
43 setStream(
new FileStream(path, mode, createMode));
49 return pget()->length();
61 setStream(
new FileStream(path, mode, createMode));
73 return seekStart(offset);
77 seekCur(ssize_t offset)
80 return pget()->seekCur(offset);
84 seekStart(ssize_t offset = 0)
87 return pget()->seekStart(offset);
91 seekEnd(
long offset = 0)
94 return pget()->seekEnd(offset);
100 return pget()->tell();
107 return pget()->truncate(length);
126 return utl::cast<FileStream>(_stream);
133 return utl::cast<FileStream>(_stream);
utl::BufferedStream & flush(utl::BufferedStream &stream)
Flush the stream's output.
void deInit()
De-initialize UTL++.
#define UTL_CLASS_DECL(DC, BC)
Declaration of standard UTL++ functionality for a non-template class.
unsigned int uint_t
Unsigned integer.
const uint_t uint_t_max
Maximum uint_t value.
Buffered disk file stream.
const ssize_t ssize_t_max
Maximum ssize_t value.
void init()
Initialize UTL++.
#define ASSERTD
Do an assertion in DEBUG mode only.
Buffered stream with file descriptor.