generate all length prefix array variants via macro
This commit is contained in:
parent
4c7302c4a3
commit
e29a5a3475
7 changed files with 175 additions and 241 deletions
morphisms
|
@ -7,9 +7,9 @@ morph_array_as_valterm_to_lenpfx (Terminator:x86.UInt8)
|
|||
<Seq~<ValueTerminated Terminator> x86.UInt8>
|
||||
--> <Seq~<LengthPrefix x86.UInt64> x86.UInt8>
|
||||
```
|
||||
length_prefix_uint8_array_clear(dst);
|
||||
length_prefix_uint64_t_array_uint8_t_clear(dst);
|
||||
while( *src != Terminator )
|
||||
length_prefix_uint8_array_push(dst, *src++);
|
||||
length_prefix_uint64_t_array_uint8_t_push(dst, *src++);
|
||||
|
||||
return 0;
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue