File: ints.fqtest

package info (click to toggle)
fq 0.9.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 106,624 kB
  • sloc: xml: 2,835; makefile: 250; sh: 241; exp: 57; ansic: 21
file content (142 lines) | stat: -rw-r--r-- 9,430 bytes parent folder | download
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
# fq -n '[0,1,2,3,4,5,6,7,8,9,127,128,-1,-2,-3,-4,-5,-6,-7,-8,-31,-32,0xffff_ffff,-0xffff_ffff,0x7fff_ffff,-0x7fff_ffff]' | json2msgpack > ints.msgpack
$ fq -d msgpack 'dv,torepr' ints.msgpack
    |00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: ints.msgpack (msgpack) 0x0-0x32 (50)
0x00|dc                                             |.               |  type: "array16" (0xdc) 0x0-0x1 (1)
0x00|   00 1a                                       | ..             |  length: 26 0x1-0x3 (2)
    |                                               |                |  elements[0:26]: 0x3-0x32 (47)
    |                                               |                |    [0]{}: element 0x3-0x4 (1)
0x00|         00                                    |   .            |      type: "positive_fixint" (0x0) 0x3-0x4 (1)
0x00|         00                                    |   .            |      value: 0 0x3-0x4 (1)
    |                                               |                |    [1]{}: element 0x4-0x5 (1)
0x00|            01                                 |    .           |      type: "positive_fixint" (0x1) 0x4-0x5 (1)
0x00|            01                                 |    .           |      value: 1 0x4-0x5 (1)
    |                                               |                |    [2]{}: element 0x5-0x6 (1)
0x00|               02                              |     .          |      type: "positive_fixint" (0x2) 0x5-0x6 (1)
0x00|               02                              |     .          |      value: 2 0x5-0x6 (1)
    |                                               |                |    [3]{}: element 0x6-0x7 (1)
0x00|                  03                           |      .         |      type: "positive_fixint" (0x3) 0x6-0x7 (1)
0x00|                  03                           |      .         |      value: 3 0x6-0x7 (1)
    |                                               |                |    [4]{}: element 0x7-0x8 (1)
0x00|                     04                        |       .        |      type: "positive_fixint" (0x4) 0x7-0x8 (1)
0x00|                     04                        |       .        |      value: 4 0x7-0x8 (1)
    |                                               |                |    [5]{}: element 0x8-0x9 (1)
0x00|                        05                     |        .       |      type: "positive_fixint" (0x5) 0x8-0x9 (1)
0x00|                        05                     |        .       |      value: 5 0x8-0x9 (1)
    |                                               |                |    [6]{}: element 0x9-0xa (1)
0x00|                           06                  |         .      |      type: "positive_fixint" (0x6) 0x9-0xa (1)
0x00|                           06                  |         .      |      value: 6 0x9-0xa (1)
    |                                               |                |    [7]{}: element 0xa-0xb (1)
0x00|                              07               |          .     |      type: "positive_fixint" (0x7) 0xa-0xb (1)
0x00|                              07               |          .     |      value: 7 0xa-0xb (1)
    |                                               |                |    [8]{}: element 0xb-0xc (1)
0x00|                                 08            |           .    |      type: "positive_fixint" (0x8) 0xb-0xc (1)
0x00|                                 08            |           .    |      value: 8 0xb-0xc (1)
    |                                               |                |    [9]{}: element 0xc-0xd (1)
0x00|                                    09         |            .   |      type: "positive_fixint" (0x9) 0xc-0xd (1)
0x00|                                    09         |            .   |      value: 9 0xc-0xd (1)
    |                                               |                |    [10]{}: element 0xd-0xe (1)
0x00|                                       7f      |             .  |      type: "positive_fixint" (0x7f) 0xd-0xe (1)
0x00|                                       7f      |             .  |      value: 127 0xd-0xe (1)
    |                                               |                |    [11]{}: element 0xe-0x10 (2)
0x00|                                          cc   |              . |      type: "uint8" (0xcc) 0xe-0xf (1)
0x00|                                             80|               .|      value: 128 0xf-0x10 (1)
    |                                               |                |    [12]{}: element 0x10-0x11 (1)
0x10|ff                                             |.               |      type: "negative_fixint" (0xff) 0x10-0x11 (1)
0x10|ff                                             |.               |      value: -1 0x10-0x11 (1)
    |                                               |                |    [13]{}: element 0x11-0x12 (1)
0x10|   fe                                          | .              |      type: "negative_fixint" (0xfe) 0x11-0x12 (1)
0x10|   fe                                          | .              |      value: -2 0x11-0x12 (1)
    |                                               |                |    [14]{}: element 0x12-0x13 (1)
0x10|      fd                                       |  .             |      type: "negative_fixint" (0xfd) 0x12-0x13 (1)
0x10|      fd                                       |  .             |      value: -3 0x12-0x13 (1)
    |                                               |                |    [15]{}: element 0x13-0x14 (1)
0x10|         fc                                    |   .            |      type: "negative_fixint" (0xfc) 0x13-0x14 (1)
0x10|         fc                                    |   .            |      value: -4 0x13-0x14 (1)
    |                                               |                |    [16]{}: element 0x14-0x15 (1)
0x10|            fb                                 |    .           |      type: "negative_fixint" (0xfb) 0x14-0x15 (1)
0x10|            fb                                 |    .           |      value: -5 0x14-0x15 (1)
    |                                               |                |    [17]{}: element 0x15-0x16 (1)
0x10|               fa                              |     .          |      type: "negative_fixint" (0xfa) 0x15-0x16 (1)
0x10|               fa                              |     .          |      value: -6 0x15-0x16 (1)
    |                                               |                |    [18]{}: element 0x16-0x17 (1)
0x10|                  f9                           |      .         |      type: "negative_fixint" (0xf9) 0x16-0x17 (1)
0x10|                  f9                           |      .         |      value: -7 0x16-0x17 (1)
    |                                               |                |    [19]{}: element 0x17-0x18 (1)
0x10|                     f8                        |       .        |      type: "negative_fixint" (0xf8) 0x17-0x18 (1)
0x10|                     f8                        |       .        |      value: -8 0x17-0x18 (1)
    |                                               |                |    [20]{}: element 0x18-0x19 (1)
0x10|                        e1                     |        .       |      type: "negative_fixint" (0xe1) 0x18-0x19 (1)
0x10|                        e1                     |        .       |      value: -31 0x18-0x19 (1)
    |                                               |                |    [21]{}: element 0x19-0x1a (1)
0x10|                           e0                  |         .      |      type: "negative_fixint" (0xe0) 0x19-0x1a (1)
0x10|                           e0                  |         .      |      value: -32 0x19-0x1a (1)
    |                                               |                |    [22]{}: element 0x1a-0x1f (5)
0x10|                              ce               |          .     |      type: "uint32" (0xce) 0x1a-0x1b (1)
0x10|                                 ff ff ff ff   |           .... |      value: 4294967295 0x1b-0x1f (4)
    |                                               |                |    [23]{}: element 0x1f-0x28 (9)
0x10|                                             d3|               .|      type: "int64" (0xd3) 0x1f-0x20 (1)
0x20|ff ff ff ff 00 00 00 01                        |........        |      value: -4294967295 0x20-0x28 (8)
    |                                               |                |    [24]{}: element 0x28-0x2d (5)
0x20|                        ce                     |        .       |      type: "uint32" (0xce) 0x28-0x29 (1)
0x20|                           7f ff ff ff         |         ....   |      value: 2147483647 0x29-0x2d (4)
    |                                               |                |    [25]{}: element 0x2d-0x32 (5)
0x20|                                       d2      |             .  |      type: "int32" (0xd2) 0x2d-0x2e (1)
0x20|                                          80 00|              ..|      value: -2147483647 0x2e-0x32 (4)
0x30|00 01|                                         |..|             |
[
  0,
  1,
  2,
  3,
  4,
  5,
  6,
  7,
  8,
  9,
  127,
  128,
  -1,
  -2,
  -3,
  -4,
  -5,
  -6,
  -7,
  -8,
  -31,
  -32,
  4294967295,
  -4294967295,
  2147483647,
  -2147483647
]
$ fq -d msgpack torepr ints.msgpack
[
  0,
  1,
  2,
  3,
  4,
  5,
  6,
  7,
  8,
  9,
  127,
  128,
  -1,
  -2,
  -3,
  -4,
  -5,
  -6,
  -7,
  -8,
  -31,
  -32,
  4294967295,
  -4294967295,
  2147483647,
  -2147483647
]