当前位置: 首页>>代码示例>>C++>>正文


C++ compressed_file_ready函数代码示例

本文整理汇总了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;
}
开发者ID:Gu1,项目名称:libretro-mame,代码行数:9,代码来源:fileio.c

示例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;
}
开发者ID:GiuseppeGorgoglione,项目名称:mame,代码行数:9,代码来源:fileio.cpp

示例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;
}
开发者ID:Gu1,项目名称:libretro-mame,代码行数:12,代码来源:fileio.c

示例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;
}
开发者ID:Gu1,项目名称:libretro-mame,代码行数:12,代码来源:fileio.c

示例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;
}
开发者ID:ursine,项目名称:mame,代码行数:12,代码来源:fileio.cpp

示例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;
}
开发者ID:ursine,项目名称:mame,代码行数:12,代码来源:fileio.cpp

示例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;
}
开发者ID:ursine,项目名称:mame,代码行数:12,代码来源:fileio.cpp

示例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;
}
开发者ID:ursine,项目名称:mame,代码行数:12,代码来源:fileio.cpp

示例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;
}
开发者ID:Gu1,项目名称:libretro-mame,代码行数:12,代码来源:fileio.c

示例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;
}
开发者ID:GiuseppeGorgoglione,项目名称:mame,代码行数:12,代码来源:fileio.cpp

示例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;
}
开发者ID:GiuseppeGorgoglione,项目名称:mame,代码行数:12,代码来源:fileio.cpp

示例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;
}
开发者ID:GiuseppeGorgoglione,项目名称:mame,代码行数:12,代码来源:fileio.cpp

示例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;
}
开发者ID:GiuseppeGorgoglione,项目名称:mame,代码行数:12,代码来源:fileio.cpp

示例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;
}
开发者ID:GiuseppeGorgoglione,项目名称:mame,代码行数:12,代码来源:fileio.cpp

示例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;
}
开发者ID:GiuseppeGorgoglione,项目名称:mame,代码行数:12,代码来源:fileio.cpp


注:本文中的compressed_file_ready函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。