1
1
mirror of https://github.com/wader/fq.git synced 2024-12-27 15:42:07 +03:00
fq/format/id3/testdata/txxx-nonullterm.fqtest
Mattias Wadman 051a70bd4b interp: Change bit ranges to use exclusive end
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.
2023-10-20 15:37:26 +02:00

31 lines
3.1 KiB
Plaintext

$ fq -d id3v2 dv txxx-nonullterm
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: txxx-nonullterm (id3v2) 0x0-0x27 (39)
| | | header{}: 0x0-0xa (10)
0x00|49 44 33 |ID3 | magic: "ID3" (valid) 0x0-0x3 (3)
0x00| 03 | . | version: 3 (valid) 0x3-0x4 (1)
0x00| 00 | . | revision: 0 0x4-0x5 (1)
| | | flags{}: 0x5-0x6 (1)
0x00| 00 | . | unsynchronisation: false 0x5-0x5.1 (0.1)
0x00| 00 | . | extended_header: false 0x5.1-0x5.2 (0.1)
0x00| 00 | . | experimental_indicator: false 0x5.2-0x5.3 (0.1)
0x00| 00 | . | unused: 0 0x5.3-0x6 (0.5)
0x00| 00 00 00 1d | .... | size: 29 0x6-0xa (4)
| | | frames[0:1]: 0xa-0x27 (29)
| | | [0]{}: frame 0xa-0x27 (29)
0x00| 54 58 58 58 | TXXX | id: "TXXX" (User defined text information frame) 0xa-0xe (4)
0x00| 00 00| ..| size: 19 0xe-0x12 (4)
0x10|00 13 |.. |
| | | flags{}: 0x12-0x14 (2)
0x10| 00 | . | tag_alter_preservation: false 0x12-0x12.1 (0.1)
0x10| 00 | . | file_alter_preservation: false 0x12.1-0x12.2 (0.1)
0x10| 00 | . | read_only: false 0x12.2-0x12.3 (0.1)
0x10| 00 | . | unused0: 0 0x12.3-0x13 (0.5)
0x10| 00 | . | compression: false 0x13-0x13.1 (0.1)
0x10| 00 | . | encryption: false 0x13.1-0x13.2 (0.1)
0x10| 00 | . | grouping_identity: false 0x13.2-0x13.3 (0.1)
0x10| 00 | . | unused1: 0 0x13.3-0x14 (0.5)
0x10| 01 | . | text_encoding: "utf16" (1) 0x14-0x15 (1)
0x10| ff fe 53 00 6f 00 66 00 74 00 77| ..S.o.f.t.w| description: "Software" 0x15-0x27 (18)
0x20|00 61 00 72 00 65 00| |.a.r.e.| |
| | | value: "" 0x27-0x27 (0)