24 !std::is_copy_constructible_v<CFileGZInputStream> &&
25 !std::is_copy_assignable_v<CFileGZInputStream>,
51 if (
m_f->f) gzclose(
m_f->f);
59 m_f->f = gzopen(fileName.c_str(),
"rb");
60 if (
m_f->f ==
nullptr && error_msg)
61 error_msg.value().get() =
std::string(strerror(errno));
63 return m_f->f !=
nullptr;
84 return gzread(
m_f->f, Buffer, Count);
109 return gztell(
m_f->f);
118 return 0 != gzeof(
m_f->f);
TSeekOrigin
Used in CStream::Seek.
#define THROW_EXCEPTION(msg)
std::optional< std::reference_wrapper< T > > optional_ref
Shorter name for std::optional<std::reference_wrapper<T>>
GLsizei const GLchar ** string
unsigned __int64 uint64_t
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
pimpl< T > make_impl(Args &&... args)
uint64_t getFileSize(const std::string &fileName)
Return the size of the given file, or size_t(-1) if some error is found accessing that file...
#define THROW_EXCEPTION_FMT(_FORMAT_STRING,...)
#define MRPT_UNUSED_PARAM(a)
Determines whether this is an X86 or AMD64 platform.