#include <gzfstream.h>
Definition at line 45 of file gzfstream.h.
◆ gzfstreambuf() [1/3]
souffle::gzfstream::internal::gzfstreambuf::gzfstreambuf |
( |
| ) |
|
|
inline |
◆ gzfstreambuf() [2/3]
souffle::gzfstream::internal::gzfstreambuf::gzfstreambuf |
( |
const gzfstreambuf & |
| ) |
|
|
delete |
◆ gzfstreambuf() [3/3]
souffle::gzfstream::internal::gzfstreambuf::gzfstreambuf |
( |
gzfstreambuf && |
old | ) |
|
|
default |
◆ ~gzfstreambuf()
souffle::gzfstream::internal::gzfstreambuf::~gzfstreambuf |
( |
| ) |
|
|
inlineoverride |
◆ close()
gzfstreambuf* souffle::gzfstream::internal::gzfstreambuf::close |
( |
| ) |
|
|
inline |
◆ is_open()
bool souffle::gzfstream::internal::gzfstreambuf::is_open |
( |
| ) |
const |
|
inline |
◆ open()
gzfstreambuf* souffle::gzfstream::internal::gzfstreambuf::open |
( |
const std::string & |
filename, |
|
|
std::ios_base::openmode |
mode |
|
) |
| |
|
inline |
◆ overflow()
int_type souffle::gzfstream::internal::gzfstreambuf::overflow |
( |
int |
c = EOF | ) |
|
|
inlineoverrideprotected |
Definition at line 105 of file gzfstream.h.
108 return traits_type::to_int_type(*gptr());
111 unsigned charsPutBack = gptr() - eback();
115 memcpy(
buffer +
reserveSize - charsPutBack, gptr() - charsPutBack, charsPutBack);
118 if (charsRead <= 0) {
◆ sync()
int souffle::gzfstream::internal::gzfstreambuf::sync |
( |
| ) |
|
|
inlineoverrideprotected |
◆ underflow()
int_type souffle::gzfstream::internal::gzfstreambuf::underflow |
( |
| ) |
|
|
inlineoverrideprotected |
Definition at line 123 of file gzfstream.h.
128 if ((pptr() !=
nullptr) && pptr() > pbase()) {
129 int toWrite = pptr() - pbase();
130 if (gzwrite(
fileHandle, pbase(), toWrite) != toWrite) {
139 static constexpr
unsigned int bufferSize = 65536;
145 std::ios_base::openmode
mode = std::ios_base::in;
◆ buffer
char souffle::gzfstream::internal::gzfstreambuf::buffer[bufferSize] = {} |
|
private |
◆ bufferSize
constexpr unsigned int souffle::gzfstream::internal::gzfstreambuf::bufferSize = 65536 |
|
staticconstexprprivate |
◆ fileHandle
gzFile souffle::gzfstream::internal::gzfstreambuf::fileHandle = {} |
|
private |
◆ isOpen
bool souffle::gzfstream::internal::gzfstreambuf::isOpen = false |
|
private |
◆ mode
std::ios_base::openmode souffle::gzfstream::internal::gzfstreambuf::mode = std::ios_base::in |
|
private |
◆ reserveSize
constexpr unsigned int souffle::gzfstream::internal::gzfstreambuf::reserveSize = 16 |
|
staticconstexprprivate |
The documentation for this class was generated from the following file: