btparser/cparser/tests/exp_lex/WinhexPosTemplate.bt

34 lines
668 B
Plaintext

1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13: string Wh_WinhexID < comment = "file signature" > ;
14: uint32 Wh_Flags < comment = "currently - 0x00, 0X01 - Unicode" > ;
15: uint32 Wh_n_ch < comment = "number of chunks" > ;
16: struct chunk {
17: uint16 Chsize < comment = "chunk size" > ;
18: uint16 Chflags ;
19: uint64 Offset ;
20: uint64 Time ;
21: FILETIME date ;
22: uchar RGB [ 3 ] ;
23: uchar Padding ;
24: uint16 DescrLen ;
25: string Descr ;
26: if ( Chflags & 0x100 ) {
27: uint64 Relative_Offset ;
28: uint64 FileId ;
29: uint16 PathLen ;
30: string Path ;
31: }
32:
33: } wh_pos [ Wh_n_ch ] < optimize = false > ;
34: tok_eof