本文整理汇总了C++中read_title函数的典型用法代码示例。如果您正苦于以下问题:C++ read_title函数的具体用法?C++ read_title怎么用?C++ read_title使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了read_title函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: mmd3_test
static int mmd3_test(HIO_HANDLE *f, char *t, const int start)
{
char id[4];
uint32 offset, len;
if (hio_read(id, 1, 4, f) < 4)
return -1;
if (memcmp(id, "MMD2", 4) && memcmp(id, "MMD3", 4))
return -1;
hio_seek(f, 28, SEEK_CUR);
offset = hio_read32b(f); /* expdata_offset */
if (offset) {
hio_seek(f, start + offset + 44, SEEK_SET);
offset = hio_read32b(f);
len = hio_read32b(f);
hio_seek(f, start + offset, SEEK_SET);
read_title(f, t, len);
} else {
read_title(f, t, 0);
}
return 0;
}
开发者ID:duongbaoduy,项目名称:libxmp,代码行数:26,代码来源:mmd3_load.c
示例2: pt3_test
static int pt3_test(FILE *f, char *t, const int start)
{
if (read32b(f) != MAGIC_FORM)
return -1;
read32b(f); /* skip size */
if (read32b(f) != MAGIC_MODL)
return -1;
if (read32b(f) != MAGIC_VERS)
return -1;
read32b(f); /* skip size */
fseek(f, 10, SEEK_CUR);
if (read32b(f) == MAGIC_INFO) {
read32b(f); /* skip size */
read_title(f, t, 32);
} else {
read_title(f, t, 0);
}
return 0;
}
开发者ID:cmatsuoka,项目名称:chiptune.js,代码行数:26,代码来源:pt3_load.c
示例3: mod_test
static int mod_test(HIO_HANDLE *f, char *t, const int start)
{
int i;
char buf[4];
hio_seek(f, start + 1080, SEEK_SET);
if (hio_read(buf, 1, 4, f) < 4)
return -1;
if (!strncmp(buf + 2, "CH", 2) && isdigit((int)buf[0]) && isdigit((int)buf[1])) {
i = (buf[0] - '0') * 10 + buf[1] - '0';
if (i > 0 && i <= 32) {
goto found;
}
}
if (!strncmp(buf + 1, "CHN", 3) && isdigit((int)*buf)) {
if (*buf >= '0' && *buf <='9') {
goto found;
}
}
if (memcmp(buf, "M.K.", 4))
return -1;
found:
hio_seek(f, start + 0, SEEK_SET);
read_title(f, t, 20);
return 0;
}
开发者ID:Nlcke,项目名称:gideros,代码行数:31,代码来源:mod_load.c
示例4: med3_test
static int med3_test(HIO_HANDLE *f, char *t, const int start)
{
if (hio_read32b(f) != MAGIC_MED3)
return -1;
read_title(f, t, 0);
return 0;
}
开发者ID:GCrean,项目名称:libxmp,代码行数:9,代码来源:med3_load.c
示例5: no_test
static int no_test(HIO_HANDLE *f, char *t, const int start)
{
if (hio_read32b(f) != 0x4e4f0000) /* NO 0x00 0x00 */
return -1;
read_title(f, t, hio_read8(f));
return 0;
}
开发者ID:eltoder,项目名称:libxmp,代码行数:9,代码来源:no_load.c
示例6: dtt_test
static int dtt_test(FILE *f, char *t, const int start)
{
if (read32b(f) != MAGIC_DskT)
return -1;
read_title(f, t, 64);
return 0;
}
开发者ID:44kksharma,项目名称:AndEngineMODPlayerExtension,代码行数:9,代码来源:dtt_load.c
示例7: med4_test
static int med4_test(xmp_file f, char *t, const int start)
{
if (read32b(f) != MAGIC_MED4)
return -1;
read_title(f, t, 0);
return 0;
}
开发者ID:bithorder,项目名称:libxmp,代码行数:9,代码来源:med4_load.c
示例8: stim_test
static int stim_test(FILE *f, char *t, const int start)
{
if (read32b(f) != MAGIC_STIM)
return -1;
read_title(f, t, 0);
return 0;
}
开发者ID:renneruan,项目名称:GamePoo,代码行数:9,代码来源:stim_load.c
示例9: it_test
static int it_test(HIO_HANDLE *f, char *t, const int start)
{
if (hio_read32b(f) != MAGIC_IMPM)
return -1;
read_title(f, t, 26);
return 0;
}
开发者ID:RandomDeveloperM,项目名称:UE4_Hairworks,代码行数:9,代码来源:it_load.c
示例10: far_test
static int far_test(FILE *f, char *t, const int start)
{
if (read32b(f) != MAGIC_FAR)
return -1;
read_title(f, t, 40);
return 0;
}
开发者ID:cmatsuoka,项目名称:chiptune.js,代码行数:9,代码来源:far_load.c
示例11: dmf_test
static int dmf_test(xmp_file f, char *t, const int start)
{
if (read32b(f) != MAGIC_DDMF)
return -1;
xmp_fseek(f, 9, SEEK_CUR);
read_title(f, t, 30);
return 0;
}
开发者ID:bithorder,项目名称:libxmp,代码行数:10,代码来源:dmf_load.c
示例12: dmf_test
static int dmf_test(HIO_HANDLE * f, char *t, const int start)
{
if (hio_read32b(f) != MAGIC_DDMF)
return -1;
hio_seek(f, 9, SEEK_CUR);
read_title(f, t, 30);
return 0;
}
开发者ID:Acidburn0zzz,项目名称:libxmp,代码行数:10,代码来源:dmf_load.c
示例13: dbm_test
static int dbm_test(FILE * f, char *t, const int start)
{
if (read32b(f) != MAGIC_DBM0)
return -1;
fseek(f, 12, SEEK_CUR);
read_title(f, t, 44);
return 0;
}
开发者ID:ProjectZeroSlackr,项目名称:XMP,代码行数:10,代码来源:dbm_load.c
示例14: mdl_test
static int mdl_test(FILE *f, char *t, const int start)
{
uint16 id;
if (read32b(f) != MAGIC_DMDL)
return -1;
read8(f); /* version */
id = read16b(f);
if (id == 0x494e) { /* IN */
read32b(f);
read_title(f, t, 32);
} else {
read_title(f, t, 0);
}
return 0;
}
开发者ID:cmatsuoka,项目名称:chiptune.js,代码行数:19,代码来源:mdl_load.c
示例15: s3m_test
static int s3m_test(HIO_HANDLE *f, char *t, const int start)
{
hio_seek(f, start + 44, SEEK_SET);
if (hio_read32b(f) != MAGIC_SCRM)
return -1;
hio_seek(f, start + 0, SEEK_SET);
read_title(f, t, 28);
return 0;
}
开发者ID:GCrean,项目名称:libxmp,代码行数:11,代码来源:s3m_load.c
示例16: emod_test
static int emod_test(HIO_HANDLE * f, char *t, const int start)
{
if (hio_read32b(f) != MAGIC_FORM)
return -1;
hio_read32b(f);
if (hio_read32b(f) != MAGIC_EMOD)
return -1;
if (hio_read32b(f) == MAGIC_EMIC) {
hio_read32b(f); /* skip size */
hio_read16b(f); /* skip version */
read_title(f, t, 20);
} else {
read_title(f, t, 0);
}
return 0;
}
开发者ID:GenericHero,项目名称:libxmp-3ds,代码行数:20,代码来源:emod_load.c
示例17: ptm_test
static int ptm_test(FILE *f, char *t, const int start)
{
fseek(f, start + 44, SEEK_SET);
if (read32b(f) != MAGIC_PTMF)
return -1;
fseek(f, start + 0, SEEK_SET);
read_title(f, t, 28);
return 0;
}
开发者ID:ProjectZeroSlackr,项目名称:XMP,代码行数:11,代码来源:ptm_load.c
示例18: s3m_test
static int s3m_test(xmp_file f, char *t, const int start)
{
xmp_fseek(f, start + 44, SEEK_SET);
if (read32b(f) != MAGIC_SCRM)
return -1;
xmp_fseek(f, start + 0, SEEK_SET);
read_title(f, t, 28);
return 0;
}
开发者ID:bithorder,项目名称:libxmp,代码行数:11,代码来源:s3m_load.c
示例19: emod_test
static int emod_test(xmp_file f, char *t, const int start)
{
if (read32b(f) != MAGIC_FORM)
return -1;
read32b(f);
if (read32b(f) != MAGIC_EMOD)
return -1;
if (read32b(f) == MAGIC_EMIC) {
read32b(f); /* skip size */
read16b(f); /* skip version */
read_title(f, t, 20);
} else {
read_title(f, t, 0);
}
return 0;
}
开发者ID:bithorder,项目名称:libxmp,代码行数:20,代码来源:emod_load.c
示例20: stim_test
static int stim_test(HIO_HANDLE *f, char *t, const int start)
{
if (hio_read32b(f) != MAGIC_STIM)
return -1;
if (hio_read16b(f) > 16)
return -1;
read_title(f, t, 0);
return 0;
}
开发者ID:Acidburn0zzz,项目名称:libxmp,代码行数:12,代码来源:stim_load.c
注:本文中的read_title函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论