• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ compressed_file_ready函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中compressed_file_ready函数的典型用法代码示例。如果您正苦于以下问题:C++ compressed_file_ready函数的具体用法?C++ compressed_file_ready怎么用?C++ compressed_file_ready使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了compressed_file_ready函数的17个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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


示例16: 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)
		return m_file->seek(offset, whence);

	return 1;
}
开发者ID:GiuseppeGorgoglione,项目名称:mame,代码行数:12,代码来源:fileio.cpp


示例17:

hash_collection &emu_file::hashes(const char *types)
{
	// determine the hashes we already have
	std::string already_have;
	m_hashes.hash_types(already_have);

	// determine which hashes we need
	std::string needed;
	for (const char *scan = types; *scan != 0; scan++)
		if (already_have.find_first_of(*scan) == -1)
			needed.push_back(*scan);

	// if we need nothing, skip it
	if (needed.empty())
		return m_hashes;

	// load the ZIP file if needed
	if (compressed_file_ready())
		return m_hashes;
	if (m_file == nullptr)
		return m_hashes;

	// if we have ZIP data, just hash that directly
	if (!m__7zdata.empty())
	{
		m_hashes.compute(&m__7zdata[0], m__7zdata.size(), needed.c_str());
		return m_hashes;
	}

	if (!m_zipdata.empty())
	{
		m_hashes.compute(&m_zipdata[0], m_zipdata.size(), needed.c_str());
		return m_hashes;
	}

	// read the data if we can
	const UINT8 *filedata = (const UINT8 *)core_fbuffer(m_file);
	if (filedata == nullptr)
		return m_hashes;

	// compute the hash
	m_hashes.compute(filedata, core_fsize(m_file), needed.c_str());
	return m_hashes;
}
开发者ID:ursine,项目名称:mame,代码行数:44,代码来源:fileio.cpp



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ compute函数代码示例发布时间:2022-05-30
下一篇:
C++ compressBound函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap