010editor模板例子解析二进制数据

来源:互联网 发布:什么软件可以下载软件 编辑:程序博客网 时间:2024/04/30 23:46

http://www.sweetscape.com/010editor/templates.html

struct FILE {    struct HEADER {    char    type[4];        int     version;        ushort  numRecords;    } header <bgcolor=cLtGray>;    struct RECORD {        int     employeeId;        char    name[40];        floatsalary;        if( file.header.version > 1 )            int      numChildren;        if( file.header.version > 2 )            time_t   birthDate;    } record[ file.header.numRecords ];} file;


0 0