2022-05-21 20:33:52 +03:00
|
|
|
$ fq -i -d mp3 . test.mp3
|
2022-09-25 17:58:31 +03:00
|
|
|
mp3> .headers[0].version | ., tovalue, toactual, tosym, type, length?
|
2022-05-20 13:38:43 +03:00
|
|
|
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|
|
2020-06-08 03:29:51 +03:00
|
|
|
0x0| 04 | . |.headers[0].version: 4
|
2021-08-12 00:51:00 +03:00
|
|
|
4
|
2022-09-25 17:58:31 +03:00
|
|
|
4
|
|
|
|
null
|
2020-06-08 03:29:51 +03:00
|
|
|
"number"
|
|
|
|
4
|
2021-08-15 15:07:16 +03:00
|
|
|
mp3> .headers[0].version[0] | ., type, length?
|
2020-06-08 03:29:51 +03:00
|
|
|
error: expected an array but got: number
|
2021-08-15 15:07:16 +03:00
|
|
|
mp3> .headers[0].version[-1000] | ., type, length?
|
2020-06-08 03:29:51 +03:00
|
|
|
error: expected an array but got: number
|
2021-08-15 15:07:16 +03:00
|
|
|
mp3> .headers[0].version[1000] | ., type, length?
|
2020-06-08 03:29:51 +03:00
|
|
|
error: expected an array but got: number
|
2021-08-15 15:07:16 +03:00
|
|
|
mp3> .headers[0].version[1:3] | ., type, length?
|
2020-06-08 03:29:51 +03:00
|
|
|
error: expected an array but got: number
|
2021-08-15 15:07:16 +03:00
|
|
|
mp3> .headers[0].version[0:-1] | ., type, length?
|
2020-06-08 03:29:51 +03:00
|
|
|
error: expected an array but got: number
|
2021-08-15 15:07:16 +03:00
|
|
|
mp3> .headers[0].version[-1000:2000] | ., type, length?
|
2020-06-08 03:29:51 +03:00
|
|
|
error: expected an array but got: number
|
2021-08-15 15:07:16 +03:00
|
|
|
mp3> .headers[0].version["test"] | ., type, length?
|
2020-06-08 03:29:51 +03:00
|
|
|
error: expected an object but got: number
|
2021-08-15 15:07:16 +03:00
|
|
|
mp3> [.headers[0].version[]] | type, length?
|
2020-06-08 03:29:51 +03:00
|
|
|
error: cannot iterate over: number
|
2021-08-15 15:07:16 +03:00
|
|
|
mp3> .headers[0].version | keys
|
2020-06-08 03:29:51 +03:00
|
|
|
error: keys cannot be applied to: number
|
2021-08-15 15:07:16 +03:00
|
|
|
mp3> .headers[0].version | has("a")
|
2020-06-08 03:29:51 +03:00
|
|
|
error: has cannot be applied to: number
|
2021-08-15 15:07:16 +03:00
|
|
|
mp3> .headers[0].version | has(0)
|
2020-06-08 03:29:51 +03:00
|
|
|
error: has cannot be applied to: number
|
2021-08-15 15:07:16 +03:00
|
|
|
mp3> .headers[0].version | type
|
2020-06-08 03:29:51 +03:00
|
|
|
"number"
|
2021-08-15 15:07:16 +03:00
|
|
|
mp3> .headers[0].version | tonumber
|
2020-06-08 03:29:51 +03:00
|
|
|
4
|
2021-08-15 15:07:16 +03:00
|
|
|
mp3> .headers[0].version | tostring
|
2020-06-08 03:29:51 +03:00
|
|
|
"4"
|
2021-08-15 15:07:16 +03:00
|
|
|
mp3> .headers[0].version + ""
|
2020-06-08 03:29:51 +03:00
|
|
|
error: cannot add: number (4) and string ("")
|
2021-08-15 15:07:16 +03:00
|
|
|
mp3> .headers[0].version + 1
|
2020-06-08 03:29:51 +03:00
|
|
|
5
|
2021-08-15 15:07:16 +03:00
|
|
|
mp3> .headers[0].version._start | ., type, length?
|
2020-06-08 03:29:51 +03:00
|
|
|
24
|
|
|
|
"number"
|
|
|
|
24
|
2021-08-15 15:07:16 +03:00
|
|
|
mp3> .headers[0].version._stop | ., type, length?
|
2020-06-08 03:29:51 +03:00
|
|
|
32
|
|
|
|
"number"
|
|
|
|
32
|
2021-08-15 15:07:16 +03:00
|
|
|
mp3> .headers[0].version._len | ., type, length?
|
2020-06-08 03:29:51 +03:00
|
|
|
8
|
|
|
|
"number"
|
|
|
|
8
|
2021-08-15 15:07:16 +03:00
|
|
|
mp3> .headers[0].version._name | ., type, length?
|
2020-06-08 03:29:51 +03:00
|
|
|
"version"
|
|
|
|
"string"
|
|
|
|
7
|
2022-09-25 17:58:31 +03:00
|
|
|
mp3> .headers[0].version._actual | ., type, length?
|
|
|
|
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|
|
|
|
|
0x0| 04 | . |.headers[0].version: 4
|
|
|
|
"number"
|
|
|
|
4
|
2021-11-03 19:19:33 +03:00
|
|
|
mp3> .headers[0].version._sym | ., type, length?
|
2022-09-25 17:58:31 +03:00
|
|
|
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|
|
|
|
|
0x0| 04 | . |.headers[0].version: 4
|
2021-11-05 17:04:26 +03:00
|
|
|
"null"
|
2020-06-08 03:29:51 +03:00
|
|
|
0
|
2021-08-15 15:07:16 +03:00
|
|
|
mp3> .headers[0].version._description | ., type, length?
|
2021-11-19 13:44:23 +03:00
|
|
|
null
|
|
|
|
"null"
|
2020-06-08 03:29:51 +03:00
|
|
|
0
|
2021-08-15 15:07:16 +03:00
|
|
|
mp3> .headers[0].version._path | ., type, length?
|
2020-06-08 03:29:51 +03:00
|
|
|
[
|
|
|
|
"headers",
|
|
|
|
0,
|
|
|
|
"version"
|
|
|
|
]
|
|
|
|
"array"
|
|
|
|
3
|
2021-08-15 15:07:16 +03:00
|
|
|
mp3> .headers[0].version._bits | ., type, length?
|
2022-05-20 13:38:43 +03:00
|
|
|
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|
|
2021-11-05 17:04:26 +03:00
|
|
|
0x0| 04 | . |.: raw bits 0x3-0x3.7 (1)
|
2022-07-26 16:50:18 +03:00
|
|
|
"string"
|
2020-06-08 03:29:51 +03:00
|
|
|
8
|
2021-08-15 15:07:16 +03:00
|
|
|
mp3> .headers[0].version._bytes | ., type, length?
|
2022-05-20 13:38:43 +03:00
|
|
|
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|
|
2021-11-05 17:04:26 +03:00
|
|
|
0x0| 04 | . |.: raw bits 0x3-0x3.7 (1)
|
2022-07-26 16:50:18 +03:00
|
|
|
"string"
|
2020-06-08 03:29:51 +03:00
|
|
|
1
|
2021-08-15 15:07:16 +03:00
|
|
|
mp3> .headers[0].version._error | ., type, length?
|
2020-06-08 03:29:51 +03:00
|
|
|
null
|
|
|
|
"null"
|
|
|
|
0
|
2021-08-15 15:07:16 +03:00
|
|
|
mp3> .headers[0].version._unknown | ., type, length?
|
2020-06-08 03:29:51 +03:00
|
|
|
false
|
|
|
|
"boolean"
|
2021-08-15 15:07:16 +03:00
|
|
|
mp3> .headers[0].version.a = 1
|
2022-04-10 12:51:14 +03:00
|
|
|
error: expected an object but got: number (4)
|
2021-08-15 15:07:16 +03:00
|
|
|
mp3> .headers[0].version[0] = 1
|
2022-04-10 12:51:14 +03:00
|
|
|
error: expected an array but got: number (4)
|
2021-08-15 15:07:16 +03:00
|
|
|
mp3> .headers[0].version.a |= empty
|
|
|
|
error: expected an object but got: number
|
|
|
|
mp3> .headers[0].version[0] |= empty
|
|
|
|
error: expected an array but got: number
|
|
|
|
mp3> .headers[0].version | setpath(["a"]; 1)
|
2022-04-10 12:51:14 +03:00
|
|
|
error: expected an object but got: number (4)
|
2021-08-15 15:07:16 +03:00
|
|
|
mp3> .headers[0].version | setpath([0]; 1)
|
2022-04-10 12:51:14 +03:00
|
|
|
error: expected an array but got: number (4)
|
2021-08-15 15:07:16 +03:00
|
|
|
mp3> .headers[0].version | delpaths([["a"]])
|
2022-04-10 12:51:14 +03:00
|
|
|
error: expected an object but got: number (4)
|
2021-08-15 15:07:16 +03:00
|
|
|
mp3> .headers[0].version | delpaths([[0]])
|
2022-04-10 12:51:14 +03:00
|
|
|
error: expected an array but got: number (4)
|
2021-08-15 15:07:16 +03:00
|
|
|
mp3> ^D
|