Build a TLV (tag-length-value) codec in Python modeled on DER structure. tlv.py: a tag byte where bit 5…
Build a TLV (tag-length-value) codec in Python modeled on DER structure. tlv.py: a tag byte where bit 5…: a task in traj2envs-rl: RL tasks generated with traj2envs (Harbor dataset). Length — definite form only: - 0 <= n < 128 : short form, a single byte n . - 128 <= n <= 255 : 0x81 followed by one…
The task
Length — definite form only: - `0 <= n < 128`: short form, a single byte `n`. - `128 <= n <= 255`: `0x81` followed by one byte `n`. - `256 <= n <= 65535`: `0x82` followed by two big-endian bytes of `n`. - `n > 65535`: `encode` raises `ValueError` (the 2-byte long form is the maximum).
Part of harness-hub/traj2envs-rl.