本文整理汇总了C++中compressed_file_ready函数的典型用法代码示例。如果您正苦于以下问题:C++ compressed_file_ready函数的具体用法?C++ compressed_file_ready怎么用?C++ compressed_file_ready使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了compressed_file_ready函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
emu_file::operator core_file *()
{
// load the ZIP file now if we haven't yet
if (compressed_file_ready())
return NULL;
// return the core file
return m_file;
}
示例2: emu_fatalerror
emu_file::operator util::core_file &()
{
// load the ZIP file now if we haven't yet
if (compressed_file_ready())
throw emu_fatalerror("operator core_file & used on invalid file");
// return the core file
return *m_file;
}
示例3: ungetc
int emu_file::ungetc(int c)
{
// load the ZIP file now if we haven't yet
if (compressed_file_ready())
return 1;
// read the data if we can
if (m_file != NULL)
return core_ungetc(c, m_file);
return 1;
}
示例4: tell
UINT64 emu_file::tell()
{
// load the ZIP file now if we haven't yet
if (compressed_file_ready())
return 0;
// tell if we can
if (m_file != NULL)
return core_ftell(m_file);
return 0;
}
示例5: getc
int emu_file::getc()
{
// load the ZIP file now if we haven't yet
if (compressed_file_ready())
return EOF;
// read the data if we can
if (m_file != nullptr)
return core_fgetc(m_file);
return EOF;
}
示例6: read
UINT32 emu_file::read(void *buffer, UINT32 length)
{
// load the ZIP file now if we haven't yet
if (compressed_file_ready())
return 0;
// read the data if we can
if (m_file != nullptr)
return core_fread(m_file, buffer, length);
return 0;
}
示例7: eof
bool emu_file::eof()
{
// load the ZIP file now if we haven't yet
if (compressed_file_ready())
return 0;
// return EOF if we can
if (m_file != nullptr)
return core_feof(m_file);
return 0;
}
示例8: seek
int emu_file::seek(INT64 offset, int whence)
{
// load the ZIP file now if we haven't yet
if (compressed_file_ready())
return 1;
// seek if we can
if (m_file != nullptr)
return core_fseek(m_file, offset, whence);
return 1;
}
示例9: core_fgets
char *emu_file::gets(char *s, int n)
{
// load the ZIP file now if we haven't yet
if (compressed_file_ready())
return NULL;
// read the data if we can
if (m_file != NULL)
return core_fgets(s, n, m_file);
return NULL;
}
示例10:
char *emu_file::gets(char *s, int n)
{
// load the ZIP file now if we haven't yet
if (compressed_file_ready())
return nullptr;
// read the data if we can
if (m_file)
return m_file->gets(s, n);
return nullptr;
}
示例11: getc
int emu_file::getc()
{
// load the ZIP file now if we haven't yet
if (compressed_file_ready())
return EOF;
// read the data if we can
if (m_file)
return m_file->getc();
return EOF;
}
示例12: ungetc
int emu_file::ungetc(int c)
{
// load the ZIP file now if we haven't yet
if (compressed_file_ready())
return 1;
// read the data if we can
if (m_file)
return m_file->ungetc(c);
return 1;
}
示例13: read
UINT32 emu_file::read(void *buffer, UINT32 length)
{
// load the ZIP file now if we haven't yet
if (compressed_file_ready())
return 0;
// read the data if we can
if (m_file)
return m_file->read(buffer, length);
return 0;
}
示例14: eof
bool emu_file::eof()
{
// load the ZIP file now if we haven't yet
if (compressed_file_ready())
return 0;
// return EOF if we can
if (m_file)
return m_file->eof();
return 0;
}
示例15: tell
UINT64 emu_file::tell()
{
// load the ZIP file now if we haven't yet
if (compressed_file_ready())
return 0;
// tell if we can
if (m_file)
return m_file->tell();
return 0;
}