Code generator for C++ from YAML to generate network protocol parsers
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 

38 行
793 B

includes:
- <array>
- "\"bitops.hpp\""
classes:
-
name: record_identifier
attributes:
-
name: uuid
out_type: std::array<unsigned char, 16>
start: 0
-
name: x
out_type: bitops::regulated<uint32_t>
start: 16
-
name: y
out_type: bitops::regulated<uint32_t>
start: 20
-
name: record
attributes:
-
name: record_id
out_type: std::array<unsigned char, 24>
start: 0
-
name: timestamp
out_type: bitops::regulated<uint64_t>
start: 24
-
name: offset
out_type: bitops::regulated<uint64_t>
start: 32
-
name: flags
out_type: bitops::regulated<uint32_t>
start: 40