1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115
|
$ fq -i -d mp3 . test.mp3
mp3> .headers[0].header.flags.unsynchronisation | ., tovalue, toactual, tosym, type, length?
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|
0x0| 00 | . |.headers[0].header.flags.unsynchronisation: false
false
false
null
"boolean"
mp3> .headers[0].header.flags.unsynchronisation[0] | ., type, length?
error: expected an array but got: boolean
mp3> .headers[0].header.flags.unsynchronisation[-1000] | ., type, length?
error: expected an array but got: boolean
mp3> .headers[0].header.flags.unsynchronisation[1000] | ., type, length?
error: expected an array but got: boolean
mp3> .headers[0].header.flags.unsynchronisation[1:3] | ., type, length?
error: expected an array but got: boolean
mp3> .headers[0].header.flags.unsynchronisation[0:-1] | ., type, length?
error: expected an array but got: boolean
mp3> .headers[0].header.flags.unsynchronisation[-1000:2000] | ., type, length?
error: expected an array but got: boolean
mp3> .headers[0].header.flags.unsynchronisation["test"] | ., type, length?
null
"null"
0
mp3> [.headers[0].header.flags.unsynchronisation[]] | type, length?
error: cannot iterate over: boolean
mp3> .headers[0].header.flags.unsynchronisation | keys
error: keys cannot be applied to: boolean
mp3> .headers[0].header.flags.unsynchronisation | has("a")
error: has cannot be applied to: boolean
mp3> .headers[0].header.flags.unsynchronisation | has(0)
error: has cannot be applied to: boolean
mp3> .headers[0].header.flags.unsynchronisation | type
"boolean"
mp3> .headers[0].header.flags.unsynchronisation | tonumber
error: tonumber cannot be applied to: boolean
mp3> .headers[0].header.flags.unsynchronisation | tostring
"false"
mp3> .headers[0].header.flags.unsynchronisation + ""
error: cannot add: boolean (false) and string ("")
mp3> .headers[0].header.flags.unsynchronisation + 1
error: cannot add: boolean (false) and number (1)
mp3> .headers[0].header.flags.unsynchronisation._start | ., type, length?
40
"number"
40
mp3> .headers[0].header.flags.unsynchronisation._stop | ., type, length?
41
"number"
41
mp3> .headers[0].header.flags.unsynchronisation._len | ., type, length?
1
"number"
1
mp3> .headers[0].header.flags.unsynchronisation._name | ., type, length?
"unsynchronisation"
"string"
17
mp3> .headers[0].header.flags.unsynchronisation._actual | ., type, length?
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|
0x0| 00 | . |.headers[0].header.flags.unsynchronisation: false
"boolean"
mp3> .headers[0].header.flags.unsynchronisation._sym | ., type, length?
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|
0x0| 00 | . |.headers[0].header.flags.unsynchronisation: false
"null"
0
mp3> .headers[0].header.flags.unsynchronisation._description | ., type, length?
null
"null"
0
mp3> .headers[0].header.flags.unsynchronisation._path | ., type, length?
[
"headers",
0,
"header",
"flags",
"unsynchronisation"
]
"array"
5
mp3> .headers[0].header.flags.unsynchronisation._bits | ., type, length?
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|
0x0| 00 | . |.: raw bits 0x5-0x5.1 (0.1)
"string"
1
mp3> .headers[0].header.flags.unsynchronisation._bytes | ., type, length?
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|
0x0| 00 | . |.: raw bits 0x5-0x5.1 (0.1)
"string"
0
mp3> .headers[0].header.flags.unsynchronisation._error | ., type, length?
null
"null"
0
mp3> .headers[0].header.flags.unsynchronisation._gap | ., type, length?
false
"boolean"
mp3> .headers[0].header.flags.unsynchronisation.a = 1
error: setpath(["headers",0,"header","fl ...]; 1) cannot be applied to {"footers":[],"frames":[{" ...: expected an object but got: boolean (false)
mp3> .headers[0].header.flags.unsynchronisation[0] = 1
error: setpath(["headers",0,"header","fl ...]; 1) cannot be applied to {"footers":[],"frames":[{" ...: expected an array but got: boolean (false)
mp3> .headers[0].header.flags.unsynchronisation.a |= empty
error: delpaths([["headers",0,"header","f ...]) cannot be applied to {"footers":[],"frames":[{" ...: expected an object but got: boolean (false)
mp3> .headers[0].header.flags.unsynchronisation[0] |= empty
error: expected an array but got: boolean
mp3> .headers[0].header.flags.unsynchronisation | setpath(["a"]; 1)
error: setpath(["a"]; 1) cannot be applied to false: expected an object but got: boolean (false)
mp3> .headers[0].header.flags.unsynchronisation | setpath([0]; 1)
error: setpath([0]; 1) cannot be applied to false: expected an array but got: boolean (false)
mp3> .headers[0].header.flags.unsynchronisation | delpaths([["a"]])
error: delpaths([["a"]]) cannot be applied to false: expected an object but got: boolean (false)
mp3> .headers[0].header.flags.unsynchronisation | delpaths([[0]])
error: delpaths([[0]]) cannot be applied to false: expected an array but got: boolean (false)
mp3> ^D
|