mirror of
https://github.com/wader/fq.git
synced 2024-11-27 06:04:47 +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.
23 lines
2.2 KiB
Plaintext
23 lines
2.2 KiB
Plaintext
$ fq -d asn1_ber dv tc35.ber
|
|
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: tc35.ber (asn1_ber) 0x0-0x10 (16)
|
|
0x000|23 |# | class: "universal" (0) 0x0-0x0.2 (0.2)
|
|
0x000|23 |# | form: "constructed" (1) 0x0.2-0x0.3 (0.1)
|
|
0x000|23 |# | tag: "bit_string" (0x3) 0x0.3-0x1 (0.5)
|
|
0x000| 80 | . | length: "indefinite" (0) 0x1-0x2 (1)
|
|
| | | constructed[0:2]: 0x2-0xe (12)
|
|
| | | [0]{}: object 0x2-0x7 (5)
|
|
0x000| 04 | . | class: "universal" (0) 0x2-0x2.2 (0.2)
|
|
0x000| 04 | . | form: "primitive" (0) 0x2.2-0x2.3 (0.1)
|
|
0x000| 04 | . | tag: "octet_string" (0x4) 0x2.3-0x3 (0.5)
|
|
0x000| 03 | . | length: 3 0x3-0x4 (1)
|
|
0x000| 00 0a 3b | ..; | value: raw bits 0x4-0x7 (3)
|
|
| | | [1]{}: object 0x7-0xe (7)
|
|
0x000| 04 | . | class: "universal" (0) 0x7-0x7.2 (0.2)
|
|
0x000| 04 | . | form: "primitive" (0) 0x7.2-0x7.3 (0.1)
|
|
0x000| 04 | . | tag: "octet_string" (0x4) 0x7.3-0x8 (0.5)
|
|
0x000| 05 | . | length: 5 0x8-0x9 (1)
|
|
0x000| 04 5f 29 1c d0 | ._).. | value: raw bits 0x9-0xe (5)
|
|
0x000| 00 00| ..| end_marker: 0 0xe-0x10 (2)
|
|
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|
|
|
0x0|00 0a 3b 04 5f 29 1c d0| |..;._)..| | value: raw bits 0x0-0x8 (8)
|