3 ms·
> Also some ability to length-prefix the output of a macro might be useful for tag-length-value-like formats. Exactly. TLV (tag-length-value) support is really
by childintime 8y ago
> Also some ability to length-prefix the output of a macro might be useful for tag-length-value-like formats.
Exactly. TLV (tag-length-value) support is really what I expected to see. They are hairy to get right manually.
- thosakwe 8y agoI think you could achieve something like that with a macro. macro tlv_string s begin i32 (get CONSTANT_STRING_TAG_FOO) i32 (len s) str s u8 0 endmacro By the way, there's no `len` command at this point, so that's something I'll have to add in eventually to get something like TLV to work.