返回信息流typedef struct {
uleb128 utf16_size <comment="Size of string in UTF-16 code units">;
//尖括号里的内容功能上好理解,但是C++里有这样的语法么?该怎么理解呢?
string data <comment="A string in MUTF-8 format">;
} string_item;
typedef struct {
uint string_data_off <comment="File offset of string data">;
local int64 pos = FTell();
FSeek(odexpad + string_data_off);
string_item string_data <comment="String item">;
FSeek(pos);
} string_id_item <read=StringDataReader, optimize=false>;
//这里的<>又是什么意思呢?变量的初始化么?但是read和optimize也并没有在程序里面定义...不明白,求解惑?
string StringDataReader(string_id_item &i) {
return i.string_data.data;
}
这是一条镜像帖。来源:北邮人论坛 / cpp / #72355同步于 2013/7/3
该镜像源已超过 30 天没有更新,可能在源站已被删除。
CPP机器人发帖
[问题]这个风格struct是C++的风格么?走过路过帮忙看看~
lcl13hope
2013/7/3镜像同步5 回复
订阅后,新回复会通过你的通知中心匿名送达。
5 条回复
【 在 ashjn2011 的大作中提到: 】
: 奇怪的语法,求解释
代码是从Dextemplate.bt文件里面拷贝的,我感觉像是C++写的(囧...应该是C++吧),就发到这版了,求指教..