mirror of
https://github.com/wader/fq.git
synced 2024-11-29 23:27:12 +03:00
051a70bd4b
All other ranges and slicing uses exclusive end so i think it make sense to make it consistent. Update docs and add additional example for non-byte-aligned field. Also fixes issue showing zero bit ranges as start-NA.
15 lines
1.3 KiB
Plaintext
15 lines
1.3 KiB
Plaintext
$ fq -d asn1_ber dv tc9.ber
|
|
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: tc9.ber (asn1_ber) 0x0-0x5 (5)
|
|
0x0|09 |. | class: "universal" (0) 0x0-0x0.2 (0.2)
|
|
0x0|09 |. | form: "primitive" (0) 0x0.2-0x0.3 (0.1)
|
|
0x0|09 |. | tag: "real" (0x9) 0x0.3-0x1 (0.5)
|
|
0x0| 03 | . | length: 3 0x1-0x2 (1)
|
|
0x0| bc | . | binary_encoding: true 0x2-0x2.1 (0.1)
|
|
0x0| bc | . | sign: 1 (false) 0x2.1-0x2.2 (0.1)
|
|
0x0| bc | . | base: 0 (3) 0x2.2-0x2.4 (0.2)
|
|
0x0| bc | . | scale: 3 0x2.4-0x2.6 (0.2)
|
|
0x0| bc | . | format: 0 0x2.6-0x3 (0.2)
|
|
0x0| fe | . | exp: -2 0x3-0x4 (1)
|
|
0x0| 05| | .| | n: 5 0x4-0x5 (1)
|
|
| | | value: +Inf
|