amqp_framing.c

filter: Statementstmt 8.0% 188 / 2340 Branchbran 5.3% 86 / 1604 Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 6.9% 274 / 3944 SCAR 0
CC
0
Cov
0%
CRAP 0
« amqp_debug.c ↑ Summary amqp_socket.c »
1 #include <stdlib.h>
2 #include <string.h>
3 #include <stdio.h>
4 #include <errno.h>
5 #include <arpa/inet.h> /* ntohl, htonl, ntohs, htons */
6  
7 #include "amqp.h"
8 #include "amqp_framing.h"
9 #include "amqp_private.h"
10  
11 0 char const *amqp_method_name(amqp_method_number_t methodNumber) {
12 0 switch (methodNumber) {
13 0 case AMQP_CONNECTION_START_METHOD: return "AMQP_CONNECTION_START_METHOD";
14 0 case AMQP_CONNECTION_START_OK_METHOD: return "AMQP_CONNECTION_START_OK_METHOD";
15 0 case AMQP_CONNECTION_SECURE_METHOD: return "AMQP_CONNECTION_SECURE_METHOD";
16 0 case AMQP_CONNECTION_SECURE_OK_METHOD: return "AMQP_CONNECTION_SECURE_OK_METHOD";
17 0 case AMQP_CONNECTION_TUNE_METHOD: return "AMQP_CONNECTION_TUNE_METHOD";
18 0 case AMQP_CONNECTION_TUNE_OK_METHOD: return "AMQP_CONNECTION_TUNE_OK_METHOD";
19 0 case AMQP_CONNECTION_OPEN_METHOD: return "AMQP_CONNECTION_OPEN_METHOD";
20 0 case AMQP_CONNECTION_OPEN_OK_METHOD: return "AMQP_CONNECTION_OPEN_OK_METHOD";
21 0 case AMQP_CONNECTION_REDIRECT_METHOD: return "AMQP_CONNECTION_REDIRECT_METHOD";
22 0 case AMQP_CONNECTION_CLOSE_METHOD: return "AMQP_CONNECTION_CLOSE_METHOD";
23 0 case AMQP_CONNECTION_CLOSE_OK_METHOD: return "AMQP_CONNECTION_CLOSE_OK_METHOD";
24 0 case AMQP_CHANNEL_OPEN_METHOD: return "AMQP_CHANNEL_OPEN_METHOD";
25 0 case AMQP_CHANNEL_OPEN_OK_METHOD: return "AMQP_CHANNEL_OPEN_OK_METHOD";
26 0 case AMQP_CHANNEL_FLOW_METHOD: return "AMQP_CHANNEL_FLOW_METHOD";
27 0 case AMQP_CHANNEL_FLOW_OK_METHOD: return "AMQP_CHANNEL_FLOW_OK_METHOD";
28 0 case AMQP_CHANNEL_ALERT_METHOD: return "AMQP_CHANNEL_ALERT_METHOD";
29 0 case AMQP_CHANNEL_CLOSE_METHOD: return "AMQP_CHANNEL_CLOSE_METHOD";
30 0 case AMQP_CHANNEL_CLOSE_OK_METHOD: return "AMQP_CHANNEL_CLOSE_OK_METHOD";
31 0 case AMQP_ACCESS_REQUEST_METHOD: return "AMQP_ACCESS_REQUEST_METHOD";
32 0 case AMQP_ACCESS_REQUEST_OK_METHOD: return "AMQP_ACCESS_REQUEST_OK_METHOD";
33 0 case AMQP_EXCHANGE_DECLARE_METHOD: return "AMQP_EXCHANGE_DECLARE_METHOD";
34 0 case AMQP_EXCHANGE_DECLARE_OK_METHOD: return "AMQP_EXCHANGE_DECLARE_OK_METHOD";
35 0 case AMQP_EXCHANGE_DELETE_METHOD: return "AMQP_EXCHANGE_DELETE_METHOD";
36 0 case AMQP_EXCHANGE_DELETE_OK_METHOD: return "AMQP_EXCHANGE_DELETE_OK_METHOD";
37 0 case AMQP_QUEUE_DECLARE_METHOD: return "AMQP_QUEUE_DECLARE_METHOD";
38 0 case AMQP_QUEUE_DECLARE_OK_METHOD: return "AMQP_QUEUE_DECLARE_OK_METHOD";
39 0 case AMQP_QUEUE_BIND_METHOD: return "AMQP_QUEUE_BIND_METHOD";
40 0 case AMQP_QUEUE_BIND_OK_METHOD: return "AMQP_QUEUE_BIND_OK_METHOD";
41 0 case AMQP_QUEUE_PURGE_METHOD: return "AMQP_QUEUE_PURGE_METHOD";
42 0 case AMQP_QUEUE_PURGE_OK_METHOD: return "AMQP_QUEUE_PURGE_OK_METHOD";
43 0 case AMQP_QUEUE_DELETE_METHOD: return "AMQP_QUEUE_DELETE_METHOD";
44 0 case AMQP_QUEUE_DELETE_OK_METHOD: return "AMQP_QUEUE_DELETE_OK_METHOD";
45 0 case AMQP_QUEUE_UNBIND_METHOD: return "AMQP_QUEUE_UNBIND_METHOD";
46 0 case AMQP_QUEUE_UNBIND_OK_METHOD: return "AMQP_QUEUE_UNBIND_OK_METHOD";
47 0 case AMQP_BASIC_QOS_METHOD: return "AMQP_BASIC_QOS_METHOD";
48 0 case AMQP_BASIC_QOS_OK_METHOD: return "AMQP_BASIC_QOS_OK_METHOD";
49 0 case AMQP_BASIC_CONSUME_METHOD: return "AMQP_BASIC_CONSUME_METHOD";
50 0 case AMQP_BASIC_CONSUME_OK_METHOD: return "AMQP_BASIC_CONSUME_OK_METHOD";
51 0 case AMQP_BASIC_CANCEL_METHOD: return "AMQP_BASIC_CANCEL_METHOD";
52 0 case AMQP_BASIC_CANCEL_OK_METHOD: return "AMQP_BASIC_CANCEL_OK_METHOD";
53 0 case AMQP_BASIC_PUBLISH_METHOD: return "AMQP_BASIC_PUBLISH_METHOD";
54 0 case AMQP_BASIC_RETURN_METHOD: return "AMQP_BASIC_RETURN_METHOD";
55 0 case AMQP_BASIC_DELIVER_METHOD: return "AMQP_BASIC_DELIVER_METHOD";
56 0 case AMQP_BASIC_GET_METHOD: return "AMQP_BASIC_GET_METHOD";
57 0 case AMQP_BASIC_GET_OK_METHOD: return "AMQP_BASIC_GET_OK_METHOD";
58 0 case AMQP_BASIC_GET_EMPTY_METHOD: return "AMQP_BASIC_GET_EMPTY_METHOD";
59 0 case AMQP_BASIC_ACK_METHOD: return "AMQP_BASIC_ACK_METHOD";
60 0 case AMQP_BASIC_REJECT_METHOD: return "AMQP_BASIC_REJECT_METHOD";
61 0 case AMQP_BASIC_RECOVER_METHOD: return "AMQP_BASIC_RECOVER_METHOD";
62 0 case AMQP_FILE_QOS_METHOD: return "AMQP_FILE_QOS_METHOD";
63 0 case AMQP_FILE_QOS_OK_METHOD: return "AMQP_FILE_QOS_OK_METHOD";
64 0 case AMQP_FILE_CONSUME_METHOD: return "AMQP_FILE_CONSUME_METHOD";
65 0 case AMQP_FILE_CONSUME_OK_METHOD: return "AMQP_FILE_CONSUME_OK_METHOD";
66 0 case AMQP_FILE_CANCEL_METHOD: return "AMQP_FILE_CANCEL_METHOD";
67 0 case AMQP_FILE_CANCEL_OK_METHOD: return "AMQP_FILE_CANCEL_OK_METHOD";
68 0 case AMQP_FILE_OPEN_METHOD: return "AMQP_FILE_OPEN_METHOD";
69 0 case AMQP_FILE_OPEN_OK_METHOD: return "AMQP_FILE_OPEN_OK_METHOD";
70 0 case AMQP_FILE_STAGE_METHOD: return "AMQP_FILE_STAGE_METHOD";
71 0 case AMQP_FILE_PUBLISH_METHOD: return "AMQP_FILE_PUBLISH_METHOD";
72 0 case AMQP_FILE_RETURN_METHOD: return "AMQP_FILE_RETURN_METHOD";
73 0 case AMQP_FILE_DELIVER_METHOD: return "AMQP_FILE_DELIVER_METHOD";
74 0 case AMQP_FILE_ACK_METHOD: return "AMQP_FILE_ACK_METHOD";
75 0 case AMQP_FILE_REJECT_METHOD: return "AMQP_FILE_REJECT_METHOD";
76 0 case AMQP_STREAM_QOS_METHOD: return "AMQP_STREAM_QOS_METHOD";
77 0 case AMQP_STREAM_QOS_OK_METHOD: return "AMQP_STREAM_QOS_OK_METHOD";
78 0 case AMQP_STREAM_CONSUME_METHOD: return "AMQP_STREAM_CONSUME_METHOD";
79 0 case AMQP_STREAM_CONSUME_OK_METHOD: return "AMQP_STREAM_CONSUME_OK_METHOD";
80 0 case AMQP_STREAM_CANCEL_METHOD: return "AMQP_STREAM_CANCEL_METHOD";
81 0 case AMQP_STREAM_CANCEL_OK_METHOD: return "AMQP_STREAM_CANCEL_OK_METHOD";
82 0 case AMQP_STREAM_PUBLISH_METHOD: return "AMQP_STREAM_PUBLISH_METHOD";
83 0 case AMQP_STREAM_RETURN_METHOD: return "AMQP_STREAM_RETURN_METHOD";
84 0 case AMQP_STREAM_DELIVER_METHOD: return "AMQP_STREAM_DELIVER_METHOD";
85 0 case AMQP_TX_SELECT_METHOD: return "AMQP_TX_SELECT_METHOD";
86 0 case AMQP_TX_SELECT_OK_METHOD: return "AMQP_TX_SELECT_OK_METHOD";
87 0 case AMQP_TX_COMMIT_METHOD: return "AMQP_TX_COMMIT_METHOD";
88 0 case AMQP_TX_COMMIT_OK_METHOD: return "AMQP_TX_COMMIT_OK_METHOD";
89 0 case AMQP_TX_ROLLBACK_METHOD: return "AMQP_TX_ROLLBACK_METHOD";
90 0 case AMQP_TX_ROLLBACK_OK_METHOD: return "AMQP_TX_ROLLBACK_OK_METHOD";
91 0 case AMQP_DTX_SELECT_METHOD: return "AMQP_DTX_SELECT_METHOD";
92 0 case AMQP_DTX_SELECT_OK_METHOD: return "AMQP_DTX_SELECT_OK_METHOD";
93 0 case AMQP_DTX_START_METHOD: return "AMQP_DTX_START_METHOD";
94 0 case AMQP_DTX_START_OK_METHOD: return "AMQP_DTX_START_OK_METHOD";
95 0 case AMQP_TUNNEL_REQUEST_METHOD: return "AMQP_TUNNEL_REQUEST_METHOD";
96 0 case AMQP_TEST_INTEGER_METHOD: return "AMQP_TEST_INTEGER_METHOD";
97 0 case AMQP_TEST_INTEGER_OK_METHOD: return "AMQP_TEST_INTEGER_OK_METHOD";
98 0 case AMQP_TEST_STRING_METHOD: return "AMQP_TEST_STRING_METHOD";
99 0 case AMQP_TEST_STRING_OK_METHOD: return "AMQP_TEST_STRING_OK_METHOD";
100 0 case AMQP_TEST_TABLE_METHOD: return "AMQP_TEST_TABLE_METHOD";
101 0 case AMQP_TEST_TABLE_OK_METHOD: return "AMQP_TEST_TABLE_OK_METHOD";
102 0 case AMQP_TEST_CONTENT_METHOD: return "AMQP_TEST_CONTENT_METHOD";
103 0 case AMQP_TEST_CONTENT_OK_METHOD: return "AMQP_TEST_CONTENT_OK_METHOD";
104 0 default: return NULL;
105 }
106 }
107  
108 0 amqp_boolean_t amqp_method_has_content(amqp_method_number_t methodNumber) {
109 0 switch (methodNumber) {
110 0 case AMQP_BASIC_PUBLISH_METHOD: return 1;
111 0 case AMQP_BASIC_RETURN_METHOD: return 1;
112 0 case AMQP_BASIC_DELIVER_METHOD: return 1;
113 0 case AMQP_BASIC_GET_OK_METHOD: return 1;
114 0 case AMQP_FILE_STAGE_METHOD: return 1;
115 0 case AMQP_FILE_RETURN_METHOD: return 1;
116 0 case AMQP_STREAM_PUBLISH_METHOD: return 1;
117 0 case AMQP_STREAM_RETURN_METHOD: return 1;
118 0 case AMQP_STREAM_DELIVER_METHOD: return 1;
119 0 case AMQP_TUNNEL_REQUEST_METHOD: return 1;
120 0 case AMQP_TEST_CONTENT_METHOD: return 1;
121 0 case AMQP_TEST_CONTENT_OK_METHOD: return 1;
122 0 default: return 0;
123 }
124 }
125  
126 0 int amqp_decode_method(amqp_method_number_t methodNumber,
127 amqp_pool_t *pool,
128 amqp_bytes_t encoded,
129 void **decoded)
130 {
131 0 int offset = 0;
132 int table_result;
133 uint8_t bit_buffer;
134  
135 0 switch (methodNumber) {
136 0 case AMQP_CONNECTION_START_METHOD: {
137 0 amqp_connection_start_t *m = (amqp_connection_start_t *) amqp_pool_alloc(pool, sizeof(amqp_connection_start_t));
138 0 ▶ m->version_major = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->version_major = D_8(encoded, offset); 0 0 0
139 0 offset++;
140 0 ▶ m->version_minor = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->version_minor = D_8(encoded, offset); 0 0 0
141 0 offset++;
142 0 table_result = amqp_decode_table(encoded, pool, &(m->server_properties), &offset);
143 0 ▶ AMQP_CHECK_RESULT(table_result);
Branch: 1 branch
BranchTrueFalseTotal
AMQP_CHECK_RESULT(table_result); 0 0 0
144 0 ▶ m->mechanisms.len = D_32(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->mechanisms.len = D_32(encoded, offset); 0 0 0
145 0 offset += 4;
146 0 ▶ m->mechanisms.bytes = D_BYTES(encoded, offset, m->mechanisms.len);
Branch: 1 branch
BranchTrueFalseTotal
m->mechanisms.bytes = D_BYTES(encoded, offset, m->mechanisms.len); 0 0 0
147 0 offset += m->mechanisms.len;
148 0 ▶ m->locales.len = D_32(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->locales.len = D_32(encoded, offset); 0 0 0
149 0 offset += 4;
150 0 ▶ m->locales.bytes = D_BYTES(encoded, offset, m->locales.len);
Branch: 1 branch
BranchTrueFalseTotal
m->locales.bytes = D_BYTES(encoded, offset, m->locales.len); 0 0 0
151 0 offset += m->locales.len;
152 0 *decoded = m;
153 0 return 0;
154 }
155 0 case AMQP_CONNECTION_START_OK_METHOD: {
156 0 amqp_connection_start_ok_t *m = (amqp_connection_start_ok_t *) amqp_pool_alloc(pool, sizeof(amqp_connection_start_ok_t));
157 0 table_result = amqp_decode_table(encoded, pool, &(m->client_properties), &offset);
158 0 ▶ AMQP_CHECK_RESULT(table_result);
Branch: 1 branch
BranchTrueFalseTotal
AMQP_CHECK_RESULT(table_result); 0 0 0
159 0 ▶ m->mechanism.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->mechanism.len = D_8(encoded, offset); 0 0 0
160 0 offset++;
161 0 ▶ m->mechanism.bytes = D_BYTES(encoded, offset, m->mechanism.len);
Branch: 1 branch
BranchTrueFalseTotal
m->mechanism.bytes = D_BYTES(encoded, offset, m->mechanism.len); 0 0 0
162 0 offset += m->mechanism.len;
163 0 ▶ m->response.len = D_32(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->response.len = D_32(encoded, offset); 0 0 0
164 0 offset += 4;
165 0 ▶ m->response.bytes = D_BYTES(encoded, offset, m->response.len);
Branch: 1 branch
BranchTrueFalseTotal
m->response.bytes = D_BYTES(encoded, offset, m->response.len); 0 0 0
166 0 offset += m->response.len;
167 0 ▶ m->locale.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->locale.len = D_8(encoded, offset); 0 0 0
168 0 offset++;
169 0 ▶ m->locale.bytes = D_BYTES(encoded, offset, m->locale.len);
Branch: 1 branch
BranchTrueFalseTotal
m->locale.bytes = D_BYTES(encoded, offset, m->locale.len); 0 0 0
170 0 offset += m->locale.len;
171 0 *decoded = m;
172 0 return 0;
173 }
174 0 case AMQP_CONNECTION_SECURE_METHOD: {
175 0 amqp_connection_secure_t *m = (amqp_connection_secure_t *) amqp_pool_alloc(pool, sizeof(amqp_connection_secure_t));
176 0 ▶ m->challenge.len = D_32(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->challenge.len = D_32(encoded, offset); 0 0 0
177 0 offset += 4;
178 0 ▶ m->challenge.bytes = D_BYTES(encoded, offset, m->challenge.len);
Branch: 1 branch
BranchTrueFalseTotal
m->challenge.bytes = D_BYTES(encoded, offset, m->challenge.len); 0 0 0
179 0 offset += m->challenge.len;
180 0 *decoded = m;
181 0 return 0;
182 }
183 0 case AMQP_CONNECTION_SECURE_OK_METHOD: {
184 0 amqp_connection_secure_ok_t *m = (amqp_connection_secure_ok_t *) amqp_pool_alloc(pool, sizeof(amqp_connection_secure_ok_t));
185 0 ▶ m->response.len = D_32(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->response.len = D_32(encoded, offset); 0 0 0
186 0 offset += 4;
187 0 ▶ m->response.bytes = D_BYTES(encoded, offset, m->response.len);
Branch: 1 branch
BranchTrueFalseTotal
m->response.bytes = D_BYTES(encoded, offset, m->response.len); 0 0 0
188 0 offset += m->response.len;
189 0 *decoded = m;
190 0 return 0;
191 }
192 0 case AMQP_CONNECTION_TUNE_METHOD: {
193 0 amqp_connection_tune_t *m = (amqp_connection_tune_t *) amqp_pool_alloc(pool, sizeof(amqp_connection_tune_t));
194 0 ▶ m->channel_max = D_16(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->channel_max = D_16(encoded, offset); 0 0 0
195 0 offset += 2;
196 0 ▶ m->frame_max = D_32(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->frame_max = D_32(encoded, offset); 0 0 0
197 0 offset += 4;
198 0 ▶ m->heartbeat = D_16(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->heartbeat = D_16(encoded, offset); 0 0 0
199 0 offset += 2;
200 0 *decoded = m;
201 0 return 0;
202 }
203 0 case AMQP_CONNECTION_TUNE_OK_METHOD: {
204 0 amqp_connection_tune_ok_t *m = (amqp_connection_tune_ok_t *) amqp_pool_alloc(pool, sizeof(amqp_connection_tune_ok_t));
205 0 ▶ m->channel_max = D_16(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->channel_max = D_16(encoded, offset); 0 0 0
206 0 offset += 2;
207 0 ▶ m->frame_max = D_32(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->frame_max = D_32(encoded, offset); 0 0 0
208 0 offset += 4;
209 0 ▶ m->heartbeat = D_16(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->heartbeat = D_16(encoded, offset); 0 0 0
210 0 offset += 2;
211 0 *decoded = m;
212 0 return 0;
213 }
214 0 case AMQP_CONNECTION_OPEN_METHOD: {
215 0 amqp_connection_open_t *m = (amqp_connection_open_t *) amqp_pool_alloc(pool, sizeof(amqp_connection_open_t));
216 0 ▶ m->virtual_host.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->virtual_host.len = D_8(encoded, offset); 0 0 0
217 0 offset++;
218 0 ▶ m->virtual_host.bytes = D_BYTES(encoded, offset, m->virtual_host.len);
Branch: 1 branch
BranchTrueFalseTotal
m->virtual_host.bytes = D_BYTES(encoded, offset, m->virtual_host.len); 0 0 0
219 0 offset += m->virtual_host.len;
220 0 ▶ m->capabilities.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->capabilities.len = D_8(encoded, offset); 0 0 0
221 0 offset++;
222 0 ▶ m->capabilities.bytes = D_BYTES(encoded, offset, m->capabilities.len);
Branch: 1 branch
BranchTrueFalseTotal
m->capabilities.bytes = D_BYTES(encoded, offset, m->capabilities.len); 0 0 0
223 0 offset += m->capabilities.len;
224 0 ▶ bit_buffer = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
bit_buffer = D_8(encoded, offset); 0 0 0
225 0 offset++;
226 0 m->insist = (bit_buffer & (1 << 0)) ? 1 : 0;
227 0 *decoded = m;
228 0 return 0;
229 }
230 0 case AMQP_CONNECTION_OPEN_OK_METHOD: {
231 0 amqp_connection_open_ok_t *m = (amqp_connection_open_ok_t *) amqp_pool_alloc(pool, sizeof(amqp_connection_open_ok_t));
232 0 ▶ m->known_hosts.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->known_hosts.len = D_8(encoded, offset); 0 0 0
233 0 offset++;
234 0 ▶ m->known_hosts.bytes = D_BYTES(encoded, offset, m->known_hosts.len);
Branch: 1 branch
BranchTrueFalseTotal
m->known_hosts.bytes = D_BYTES(encoded, offset, m->known_hosts.len); 0 0 0
235 0 offset += m->known_hosts.len;
236 0 *decoded = m;
237 0 return 0;
238 }
239 0 case AMQP_CONNECTION_REDIRECT_METHOD: {
240 0 amqp_connection_redirect_t *m = (amqp_connection_redirect_t *) amqp_pool_alloc(pool, sizeof(amqp_connection_redirect_t));
241 0 ▶ m->host.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->host.len = D_8(encoded, offset); 0 0 0
242 0 offset++;
243 0 ▶ m->host.bytes = D_BYTES(encoded, offset, m->host.len);
Branch: 1 branch
BranchTrueFalseTotal
m->host.bytes = D_BYTES(encoded, offset, m->host.len); 0 0 0
244 0 offset += m->host.len;
245 0 ▶ m->known_hosts.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->known_hosts.len = D_8(encoded, offset); 0 0 0
246 0 offset++;
247 0 ▶ m->known_hosts.bytes = D_BYTES(encoded, offset, m->known_hosts.len);
Branch: 1 branch
BranchTrueFalseTotal
m->known_hosts.bytes = D_BYTES(encoded, offset, m->known_hosts.len); 0 0 0
248 0 offset += m->known_hosts.len;
249 0 *decoded = m;
250 0 return 0;
251 }
252 0 case AMQP_CONNECTION_CLOSE_METHOD: {
253 0 amqp_connection_close_t *m = (amqp_connection_close_t *) amqp_pool_alloc(pool, sizeof(amqp_connection_close_t));
254 0 ▶ m->reply_code = D_16(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->reply_code = D_16(encoded, offset); 0 0 0
255 0 offset += 2;
256 0 ▶ m->reply_text.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->reply_text.len = D_8(encoded, offset); 0 0 0
257 0 offset++;
258 0 ▶ m->reply_text.bytes = D_BYTES(encoded, offset, m->reply_text.len);
Branch: 1 branch
BranchTrueFalseTotal
m->reply_text.bytes = D_BYTES(encoded, offset, m->reply_text.len); 0 0 0
259 0 offset += m->reply_text.len;
260 0 ▶ m->class_id = D_16(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->class_id = D_16(encoded, offset); 0 0 0
261 0 offset += 2;
262 0 ▶ m->method_id = D_16(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->method_id = D_16(encoded, offset); 0 0 0
263 0 offset += 2;
264 0 *decoded = m;
265 0 return 0;
266 }
267 0 case AMQP_CONNECTION_CLOSE_OK_METHOD: {
268 0 amqp_connection_close_ok_t *m = (amqp_connection_close_ok_t *) amqp_pool_alloc(pool, sizeof(amqp_connection_close_ok_t));
269 0 *decoded = m;
270 0 return 0;
271 }
272 0 case AMQP_CHANNEL_OPEN_METHOD: {
273 0 amqp_channel_open_t *m = (amqp_channel_open_t *) amqp_pool_alloc(pool, sizeof(amqp_channel_open_t));
274 0 ▶ m->out_of_band.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->out_of_band.len = D_8(encoded, offset); 0 0 0
275 0 offset++;
276 0 ▶ m->out_of_band.bytes = D_BYTES(encoded, offset, m->out_of_band.len);
Branch: 1 branch
BranchTrueFalseTotal
m->out_of_band.bytes = D_BYTES(encoded, offset, m->out_of_band.len); 0 0 0
277 0 offset += m->out_of_band.len;
278 0 *decoded = m;
279 0 return 0;
280 }
281 0 case AMQP_CHANNEL_OPEN_OK_METHOD: {
282 0 amqp_channel_open_ok_t *m = (amqp_channel_open_ok_t *) amqp_pool_alloc(pool, sizeof(amqp_channel_open_ok_t));
283 0 *decoded = m;
284 0 return 0;
285 }
286 0 case AMQP_CHANNEL_FLOW_METHOD: {
287 0 amqp_channel_flow_t *m = (amqp_channel_flow_t *) amqp_pool_alloc(pool, sizeof(amqp_channel_flow_t));
288 0 ▶ bit_buffer = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
bit_buffer = D_8(encoded, offset); 0 0 0
289 0 offset++;
290 0 m->active = (bit_buffer & (1 << 0)) ? 1 : 0;
291 0 *decoded = m;
292 0 return 0;
293 }
294 0 case AMQP_CHANNEL_FLOW_OK_METHOD: {
295 0 amqp_channel_flow_ok_t *m = (amqp_channel_flow_ok_t *) amqp_pool_alloc(pool, sizeof(amqp_channel_flow_ok_t));
296 0 ▶ bit_buffer = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
bit_buffer = D_8(encoded, offset); 0 0 0
297 0 offset++;
298 0 m->active = (bit_buffer & (1 << 0)) ? 1 : 0;
299 0 *decoded = m;
300 0 return 0;
301 }
302 0 case AMQP_CHANNEL_ALERT_METHOD: {
303 0 amqp_channel_alert_t *m = (amqp_channel_alert_t *) amqp_pool_alloc(pool, sizeof(amqp_channel_alert_t));
304 0 ▶ m->reply_code = D_16(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->reply_code = D_16(encoded, offset); 0 0 0
305 0 offset += 2;
306 0 ▶ m->reply_text.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->reply_text.len = D_8(encoded, offset); 0 0 0
307 0 offset++;
308 0 ▶ m->reply_text.bytes = D_BYTES(encoded, offset, m->reply_text.len);
Branch: 1 branch
BranchTrueFalseTotal
m->reply_text.bytes = D_BYTES(encoded, offset, m->reply_text.len); 0 0 0
309 0 offset += m->reply_text.len;
310 0 table_result = amqp_decode_table(encoded, pool, &(m->details), &offset);
311 0 ▶ AMQP_CHECK_RESULT(table_result);
Branch: 1 branch
BranchTrueFalseTotal
AMQP_CHECK_RESULT(table_result); 0 0 0
312 0 *decoded = m;
313 0 return 0;
314 }
315 0 case AMQP_CHANNEL_CLOSE_METHOD: {
316 0 amqp_channel_close_t *m = (amqp_channel_close_t *) amqp_pool_alloc(pool, sizeof(amqp_channel_close_t));
317 0 ▶ m->reply_code = D_16(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->reply_code = D_16(encoded, offset); 0 0 0
318 0 offset += 2;
319 0 ▶ m->reply_text.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->reply_text.len = D_8(encoded, offset); 0 0 0
320 0 offset++;
321 0 ▶ m->reply_text.bytes = D_BYTES(encoded, offset, m->reply_text.len);
Branch: 1 branch
BranchTrueFalseTotal
m->reply_text.bytes = D_BYTES(encoded, offset, m->reply_text.len); 0 0 0
322 0 offset += m->reply_text.len;
323 0 ▶ m->class_id = D_16(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->class_id = D_16(encoded, offset); 0 0 0
324 0 offset += 2;
325 0 ▶ m->method_id = D_16(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->method_id = D_16(encoded, offset); 0 0 0
326 0 offset += 2;
327 0 *decoded = m;
328 0 return 0;
329 }
330 0 case AMQP_CHANNEL_CLOSE_OK_METHOD: {
331 0 amqp_channel_close_ok_t *m = (amqp_channel_close_ok_t *) amqp_pool_alloc(pool, sizeof(amqp_channel_close_ok_t));
332 0 *decoded = m;
333 0 return 0;
334 }
335 0 case AMQP_ACCESS_REQUEST_METHOD: {
336 0 amqp_access_request_t *m = (amqp_access_request_t *) amqp_pool_alloc(pool, sizeof(amqp_access_request_t));
337 0 ▶ m->realm.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->realm.len = D_8(encoded, offset); 0 0 0
338 0 offset++;
339 0 ▶ m->realm.bytes = D_BYTES(encoded, offset, m->realm.len);
Branch: 1 branch
BranchTrueFalseTotal
m->realm.bytes = D_BYTES(encoded, offset, m->realm.len); 0 0 0
340 0 offset += m->realm.len;
341 0 ▶ bit_buffer = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
bit_buffer = D_8(encoded, offset); 0 0 0
342 0 offset++;
343 0 m->exclusive = (bit_buffer & (1 << 0)) ? 1 : 0;
344 0 m->passive = (bit_buffer & (1 << 1)) ? 1 : 0;
345 0 m->active = (bit_buffer & (1 << 2)) ? 1 : 0;
346 0 m->write = (bit_buffer & (1 << 3)) ? 1 : 0;
347 0 m->read = (bit_buffer & (1 << 4)) ? 1 : 0;
348 0 *decoded = m;
349 0 return 0;
350 }
351 0 case AMQP_ACCESS_REQUEST_OK_METHOD: {
352 0 amqp_access_request_ok_t *m = (amqp_access_request_ok_t *) amqp_pool_alloc(pool, sizeof(amqp_access_request_ok_t));
353 0 ▶ m->ticket = D_16(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->ticket = D_16(encoded, offset); 0 0 0
354 0 offset += 2;
355 0 *decoded = m;
356 0 return 0;
357 }
358 0 case AMQP_EXCHANGE_DECLARE_METHOD: {
359 0 amqp_exchange_declare_t *m = (amqp_exchange_declare_t *) amqp_pool_alloc(pool, sizeof(amqp_exchange_declare_t));
360 0 ▶ m->ticket = D_16(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->ticket = D_16(encoded, offset); 0 0 0
361 0 offset += 2;
362 0 ▶ m->exchange.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->exchange.len = D_8(encoded, offset); 0 0 0
363 0 offset++;
364 0 ▶ m->exchange.bytes = D_BYTES(encoded, offset, m->exchange.len);
Branch: 1 branch
BranchTrueFalseTotal
m->exchange.bytes = D_BYTES(encoded, offset, m->exchange.len); 0 0 0
365 0 offset += m->exchange.len;
366 0 ▶ m->type.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->type.len = D_8(encoded, offset); 0 0 0
367 0 offset++;
368 0 ▶ m->type.bytes = D_BYTES(encoded, offset, m->type.len);
Branch: 1 branch
BranchTrueFalseTotal
m->type.bytes = D_BYTES(encoded, offset, m->type.len); 0 0 0
369 0 offset += m->type.len;
370 0 ▶ bit_buffer = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
bit_buffer = D_8(encoded, offset); 0 0 0
371 0 offset++;
372 0 m->passive = (bit_buffer & (1 << 0)) ? 1 : 0;
373 0 m->durable = (bit_buffer & (1 << 1)) ? 1 : 0;
374 0 m->auto_delete = (bit_buffer & (1 << 2)) ? 1 : 0;
375 0 m->internal = (bit_buffer & (1 << 3)) ? 1 : 0;
376 0 m->nowait = (bit_buffer & (1 << 4)) ? 1 : 0;
377 0 table_result = amqp_decode_table(encoded, pool, &(m->arguments), &offset);
378 0 ▶ AMQP_CHECK_RESULT(table_result);
Branch: 1 branch
BranchTrueFalseTotal
AMQP_CHECK_RESULT(table_result); 0 0 0
379 0 *decoded = m;
380 0 return 0;
381 }
382 0 case AMQP_EXCHANGE_DECLARE_OK_METHOD: {
383 0 amqp_exchange_declare_ok_t *m = (amqp_exchange_declare_ok_t *) amqp_pool_alloc(pool, sizeof(amqp_exchange_declare_ok_t));
384 0 *decoded = m;
385 0 return 0;
386 }
387 0 case AMQP_EXCHANGE_DELETE_METHOD: {
388 0 amqp_exchange_delete_t *m = (amqp_exchange_delete_t *) amqp_pool_alloc(pool, sizeof(amqp_exchange_delete_t));
389 0 ▶ m->ticket = D_16(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->ticket = D_16(encoded, offset); 0 0 0
390 0 offset += 2;
391 0 ▶ m->exchange.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->exchange.len = D_8(encoded, offset); 0 0 0
392 0 offset++;
393 0 ▶ m->exchange.bytes = D_BYTES(encoded, offset, m->exchange.len);
Branch: 1 branch
BranchTrueFalseTotal
m->exchange.bytes = D_BYTES(encoded, offset, m->exchange.len); 0 0 0
394 0 offset += m->exchange.len;
395 0 ▶ bit_buffer = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
bit_buffer = D_8(encoded, offset); 0 0 0
396 0 offset++;
397 0 m->if_unused = (bit_buffer & (1 << 0)) ? 1 : 0;
398 0 m->nowait = (bit_buffer & (1 << 1)) ? 1 : 0;
399 0 *decoded = m;
400 0 return 0;
401 }
402 0 case AMQP_EXCHANGE_DELETE_OK_METHOD: {
403 0 amqp_exchange_delete_ok_t *m = (amqp_exchange_delete_ok_t *) amqp_pool_alloc(pool, sizeof(amqp_exchange_delete_ok_t));
404 0 *decoded = m;
405 0 return 0;
406 }
407 0 case AMQP_QUEUE_DECLARE_METHOD: {
408 0 amqp_queue_declare_t *m = (amqp_queue_declare_t *) amqp_pool_alloc(pool, sizeof(amqp_queue_declare_t));
409 0 ▶ m->ticket = D_16(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->ticket = D_16(encoded, offset); 0 0 0
410 0 offset += 2;
411 0 ▶ m->queue.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->queue.len = D_8(encoded, offset); 0 0 0
412 0 offset++;
413 0 ▶ m->queue.bytes = D_BYTES(encoded, offset, m->queue.len);
Branch: 1 branch
BranchTrueFalseTotal
m->queue.bytes = D_BYTES(encoded, offset, m->queue.len); 0 0 0
414 0 offset += m->queue.len;
415 0 ▶ bit_buffer = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
bit_buffer = D_8(encoded, offset); 0 0 0
416 0 offset++;
417 0 m->passive = (bit_buffer & (1 << 0)) ? 1 : 0;
418 0 m->durable = (bit_buffer & (1 << 1)) ? 1 : 0;
419 0 m->exclusive = (bit_buffer & (1 << 2)) ? 1 : 0;
420 0 m->auto_delete = (bit_buffer & (1 << 3)) ? 1 : 0;
421 0 m->nowait = (bit_buffer & (1 << 4)) ? 1 : 0;
422 0 table_result = amqp_decode_table(encoded, pool, &(m->arguments), &offset);
423 0 ▶ AMQP_CHECK_RESULT(table_result);
Branch: 1 branch
BranchTrueFalseTotal
AMQP_CHECK_RESULT(table_result); 0 0 0
424 0 *decoded = m;
425 0 return 0;
426 }
427 0 case AMQP_QUEUE_DECLARE_OK_METHOD: {
428 0 amqp_queue_declare_ok_t *m = (amqp_queue_declare_ok_t *) amqp_pool_alloc(pool, sizeof(amqp_queue_declare_ok_t));
429 0 ▶ m->queue.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->queue.len = D_8(encoded, offset); 0 0 0
430 0 offset++;
431 0 ▶ m->queue.bytes = D_BYTES(encoded, offset, m->queue.len);
Branch: 1 branch
BranchTrueFalseTotal
m->queue.bytes = D_BYTES(encoded, offset, m->queue.len); 0 0 0
432 0 offset += m->queue.len;
433 0 ▶ m->message_count = D_32(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->message_count = D_32(encoded, offset); 0 0 0
434 0 offset += 4;
435 0 ▶ m->consumer_count = D_32(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->consumer_count = D_32(encoded, offset); 0 0 0
436 0 offset += 4;
437 0 *decoded = m;
438 0 return 0;
439 }
440 0 case AMQP_QUEUE_BIND_METHOD: {
441 0 amqp_queue_bind_t *m = (amqp_queue_bind_t *) amqp_pool_alloc(pool, sizeof(amqp_queue_bind_t));
442 0 ▶ m->ticket = D_16(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->ticket = D_16(encoded, offset); 0 0 0
443 0 offset += 2;
444 0 ▶ m->queue.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->queue.len = D_8(encoded, offset); 0 0 0
445 0 offset++;
446 0 ▶ m->queue.bytes = D_BYTES(encoded, offset, m->queue.len);
Branch: 1 branch
BranchTrueFalseTotal
m->queue.bytes = D_BYTES(encoded, offset, m->queue.len); 0 0 0
447 0 offset += m->queue.len;
448 0 ▶ m->exchange.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->exchange.len = D_8(encoded, offset); 0 0 0
449 0 offset++;
450 0 ▶ m->exchange.bytes = D_BYTES(encoded, offset, m->exchange.len);
Branch: 1 branch
BranchTrueFalseTotal
m->exchange.bytes = D_BYTES(encoded, offset, m->exchange.len); 0 0 0
451 0 offset += m->exchange.len;
452 0 ▶ m->routing_key.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->routing_key.len = D_8(encoded, offset); 0 0 0
453 0 offset++;
454 0 ▶ m->routing_key.bytes = D_BYTES(encoded, offset, m->routing_key.len);
Branch: 1 branch
BranchTrueFalseTotal
m->routing_key.bytes = D_BYTES(encoded, offset, m->routing_key.len); 0 0 0
455 0 offset += m->routing_key.len;
456 0 ▶ bit_buffer = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
bit_buffer = D_8(encoded, offset); 0 0 0
457 0 offset++;
458 0 m->nowait = (bit_buffer & (1 << 0)) ? 1 : 0;
459 0 table_result = amqp_decode_table(encoded, pool, &(m->arguments), &offset);
460 0 ▶ AMQP_CHECK_RESULT(table_result);
Branch: 1 branch
BranchTrueFalseTotal
AMQP_CHECK_RESULT(table_result); 0 0 0
461 0 *decoded = m;
462 0 return 0;
463 }
464 0 case AMQP_QUEUE_BIND_OK_METHOD: {
465 0 amqp_queue_bind_ok_t *m = (amqp_queue_bind_ok_t *) amqp_pool_alloc(pool, sizeof(amqp_queue_bind_ok_t));
466 0 *decoded = m;
467 0 return 0;
468 }
469 0 case AMQP_QUEUE_PURGE_METHOD: {
470 0 amqp_queue_purge_t *m = (amqp_queue_purge_t *) amqp_pool_alloc(pool, sizeof(amqp_queue_purge_t));
471 0 ▶ m->ticket = D_16(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->ticket = D_16(encoded, offset); 0 0 0
472 0 offset += 2;
473 0 ▶ m->queue.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->queue.len = D_8(encoded, offset); 0 0 0
474 0 offset++;
475 0 ▶ m->queue.bytes = D_BYTES(encoded, offset, m->queue.len);
Branch: 1 branch
BranchTrueFalseTotal
m->queue.bytes = D_BYTES(encoded, offset, m->queue.len); 0 0 0
476 0 offset += m->queue.len;
477 0 ▶ bit_buffer = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
bit_buffer = D_8(encoded, offset); 0 0 0
478 0 offset++;
479 0 m->nowait = (bit_buffer & (1 << 0)) ? 1 : 0;
480 0 *decoded = m;
481 0 return 0;
482 }
483 0 case AMQP_QUEUE_PURGE_OK_METHOD: {
484 0 amqp_queue_purge_ok_t *m = (amqp_queue_purge_ok_t *) amqp_pool_alloc(pool, sizeof(amqp_queue_purge_ok_t));
485 0 ▶ m->message_count = D_32(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->message_count = D_32(encoded, offset); 0 0 0
486 0 offset += 4;
487 0 *decoded = m;
488 0 return 0;
489 }
490 0 case AMQP_QUEUE_DELETE_METHOD: {
491 0 amqp_queue_delete_t *m = (amqp_queue_delete_t *) amqp_pool_alloc(pool, sizeof(amqp_queue_delete_t));
492 0 ▶ m->ticket = D_16(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->ticket = D_16(encoded, offset); 0 0 0
493 0 offset += 2;
494 0 ▶ m->queue.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->queue.len = D_8(encoded, offset); 0 0 0
495 0 offset++;
496 0 ▶ m->queue.bytes = D_BYTES(encoded, offset, m->queue.len);
Branch: 1 branch
BranchTrueFalseTotal
m->queue.bytes = D_BYTES(encoded, offset, m->queue.len); 0 0 0
497 0 offset += m->queue.len;
498 0 ▶ bit_buffer = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
bit_buffer = D_8(encoded, offset); 0 0 0
499 0 offset++;
500 0 m->if_unused = (bit_buffer & (1 << 0)) ? 1 : 0;
501 0 m->if_empty = (bit_buffer & (1 << 1)) ? 1 : 0;
502 0 m->nowait = (bit_buffer & (1 << 2)) ? 1 : 0;
503 0 *decoded = m;
504 0 return 0;
505 }
506 0 case AMQP_QUEUE_DELETE_OK_METHOD: {
507 0 amqp_queue_delete_ok_t *m = (amqp_queue_delete_ok_t *) amqp_pool_alloc(pool, sizeof(amqp_queue_delete_ok_t));
508 0 ▶ m->message_count = D_32(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->message_count = D_32(encoded, offset); 0 0 0
509 0 offset += 4;
510 0 *decoded = m;
511 0 return 0;
512 }
513 0 case AMQP_QUEUE_UNBIND_METHOD: {
514 0 amqp_queue_unbind_t *m = (amqp_queue_unbind_t *) amqp_pool_alloc(pool, sizeof(amqp_queue_unbind_t));
515 0 ▶ m->ticket = D_16(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->ticket = D_16(encoded, offset); 0 0 0
516 0 offset += 2;
517 0 ▶ m->queue.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->queue.len = D_8(encoded, offset); 0 0 0
518 0 offset++;
519 0 ▶ m->queue.bytes = D_BYTES(encoded, offset, m->queue.len);
Branch: 1 branch
BranchTrueFalseTotal
m->queue.bytes = D_BYTES(encoded, offset, m->queue.len); 0 0 0
520 0 offset += m->queue.len;
521 0 ▶ m->exchange.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->exchange.len = D_8(encoded, offset); 0 0 0
522 0 offset++;
523 0 ▶ m->exchange.bytes = D_BYTES(encoded, offset, m->exchange.len);
Branch: 1 branch
BranchTrueFalseTotal
m->exchange.bytes = D_BYTES(encoded, offset, m->exchange.len); 0 0 0
524 0 offset += m->exchange.len;
525 0 ▶ m->routing_key.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->routing_key.len = D_8(encoded, offset); 0 0 0
526 0 offset++;
527 0 ▶ m->routing_key.bytes = D_BYTES(encoded, offset, m->routing_key.len);
Branch: 1 branch
BranchTrueFalseTotal
m->routing_key.bytes = D_BYTES(encoded, offset, m->routing_key.len); 0 0 0
528 0 offset += m->routing_key.len;
529 0 table_result = amqp_decode_table(encoded, pool, &(m->arguments), &offset);
530 0 ▶ AMQP_CHECK_RESULT(table_result);
Branch: 1 branch
BranchTrueFalseTotal
AMQP_CHECK_RESULT(table_result); 0 0 0
531 0 *decoded = m;
532 0 return 0;
533 }
534 0 case AMQP_QUEUE_UNBIND_OK_METHOD: {
535 0 amqp_queue_unbind_ok_t *m = (amqp_queue_unbind_ok_t *) amqp_pool_alloc(pool, sizeof(amqp_queue_unbind_ok_t));
536 0 *decoded = m;
537 0 return 0;
538 }
539 0 case AMQP_BASIC_QOS_METHOD: {
540 0 amqp_basic_qos_t *m = (amqp_basic_qos_t *) amqp_pool_alloc(pool, sizeof(amqp_basic_qos_t));
541 0 ▶ m->prefetch_size = D_32(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->prefetch_size = D_32(encoded, offset); 0 0 0
542 0 offset += 4;
543 0 ▶ m->prefetch_count = D_16(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->prefetch_count = D_16(encoded, offset); 0 0 0
544 0 offset += 2;
545 0 ▶ bit_buffer = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
bit_buffer = D_8(encoded, offset); 0 0 0
546 0 offset++;
547 0 m->global = (bit_buffer & (1 << 0)) ? 1 : 0;
548 0 *decoded = m;
549 0 return 0;
550 }
551 0 case AMQP_BASIC_QOS_OK_METHOD: {
552 0 amqp_basic_qos_ok_t *m = (amqp_basic_qos_ok_t *) amqp_pool_alloc(pool, sizeof(amqp_basic_qos_ok_t));
553 0 *decoded = m;
554 0 return 0;
555 }
556 0 case AMQP_BASIC_CONSUME_METHOD: {
557 0 amqp_basic_consume_t *m = (amqp_basic_consume_t *) amqp_pool_alloc(pool, sizeof(amqp_basic_consume_t));
558 0 ▶ m->ticket = D_16(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->ticket = D_16(encoded, offset); 0 0 0
559 0 offset += 2;
560 0 ▶ m->queue.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->queue.len = D_8(encoded, offset); 0 0 0
561 0 offset++;
562 0 ▶ m->queue.bytes = D_BYTES(encoded, offset, m->queue.len);
Branch: 1 branch
BranchTrueFalseTotal
m->queue.bytes = D_BYTES(encoded, offset, m->queue.len); 0 0 0
563 0 offset += m->queue.len;
564 0 ▶ m->consumer_tag.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->consumer_tag.len = D_8(encoded, offset); 0 0 0
565 0 offset++;
566 0 ▶ m->consumer_tag.bytes = D_BYTES(encoded, offset, m->consumer_tag.len);
Branch: 1 branch
BranchTrueFalseTotal
m->consumer_tag.bytes = D_BYTES(encoded, offset, m->consumer_tag.len); 0 0 0
567 0 offset += m->consumer_tag.len;
568 0 ▶ bit_buffer = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
bit_buffer = D_8(encoded, offset); 0 0 0
569 0 offset++;
570 0 m->no_local = (bit_buffer & (1 << 0)) ? 1 : 0;
571 0 m->no_ack = (bit_buffer & (1 << 1)) ? 1 : 0;
572 0 m->exclusive = (bit_buffer & (1 << 2)) ? 1 : 0;
573 0 m->nowait = (bit_buffer & (1 << 3)) ? 1 : 0;
574 0 *decoded = m;
575 0 return 0;
576 }
577 0 case AMQP_BASIC_CONSUME_OK_METHOD: {
578 0 amqp_basic_consume_ok_t *m = (amqp_basic_consume_ok_t *) amqp_pool_alloc(pool, sizeof(amqp_basic_consume_ok_t));
579 0 ▶ m->consumer_tag.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->consumer_tag.len = D_8(encoded, offset); 0 0 0
580 0 offset++;
581 0 ▶ m->consumer_tag.bytes = D_BYTES(encoded, offset, m->consumer_tag.len);
Branch: 1 branch
BranchTrueFalseTotal
m->consumer_tag.bytes = D_BYTES(encoded, offset, m->consumer_tag.len); 0 0 0
582 0 offset += m->consumer_tag.len;
583 0 *decoded = m;
584 0 return 0;
585 }
586 0 case AMQP_BASIC_CANCEL_METHOD: {
587 0 amqp_basic_cancel_t *m = (amqp_basic_cancel_t *) amqp_pool_alloc(pool, sizeof(amqp_basic_cancel_t));
588 0 ▶ m->consumer_tag.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->consumer_tag.len = D_8(encoded, offset); 0 0 0
589 0 offset++;
590 0 ▶ m->consumer_tag.bytes = D_BYTES(encoded, offset, m->consumer_tag.len);
Branch: 1 branch
BranchTrueFalseTotal
m->consumer_tag.bytes = D_BYTES(encoded, offset, m->consumer_tag.len); 0 0 0
591 0 offset += m->consumer_tag.len;
592 0 ▶ bit_buffer = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
bit_buffer = D_8(encoded, offset); 0 0 0
593 0 offset++;
594 0 m->nowait = (bit_buffer & (1 << 0)) ? 1 : 0;
595 0 *decoded = m;
596 0 return 0;
597 }
598 0 case AMQP_BASIC_CANCEL_OK_METHOD: {
599 0 amqp_basic_cancel_ok_t *m = (amqp_basic_cancel_ok_t *) amqp_pool_alloc(pool, sizeof(amqp_basic_cancel_ok_t));
600 0 ▶ m->consumer_tag.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->consumer_tag.len = D_8(encoded, offset); 0 0 0
601 0 offset++;
602 0 ▶ m->consumer_tag.bytes = D_BYTES(encoded, offset, m->consumer_tag.len);
Branch: 1 branch
BranchTrueFalseTotal
m->consumer_tag.bytes = D_BYTES(encoded, offset, m->consumer_tag.len); 0 0 0
603 0 offset += m->consumer_tag.len;
604 0 *decoded = m;
605 0 return 0;
606 }
607 0 case AMQP_BASIC_PUBLISH_METHOD: {
608 0 amqp_basic_publish_t *m = (amqp_basic_publish_t *) amqp_pool_alloc(pool, sizeof(amqp_basic_publish_t));
609 0 ▶ m->ticket = D_16(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->ticket = D_16(encoded, offset); 0 0 0
610 0 offset += 2;
611 0 ▶ m->exchange.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->exchange.len = D_8(encoded, offset); 0 0 0
612 0 offset++;
613 0 ▶ m->exchange.bytes = D_BYTES(encoded, offset, m->exchange.len);
Branch: 1 branch
BranchTrueFalseTotal
m->exchange.bytes = D_BYTES(encoded, offset, m->exchange.len); 0 0 0
614 0 offset += m->exchange.len;
615 0 ▶ m->routing_key.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->routing_key.len = D_8(encoded, offset); 0 0 0
616 0 offset++;
617 0 ▶ m->routing_key.bytes = D_BYTES(encoded, offset, m->routing_key.len);
Branch: 1 branch
BranchTrueFalseTotal
m->routing_key.bytes = D_BYTES(encoded, offset, m->routing_key.len); 0 0 0
618 0 offset += m->routing_key.len;
619 0 ▶ bit_buffer = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
bit_buffer = D_8(encoded, offset); 0 0 0
620 0 offset++;
621 0 m->mandatory = (bit_buffer & (1 << 0)) ? 1 : 0;
622 0 m->immediate = (bit_buffer & (1 << 1)) ? 1 : 0;
623 0 *decoded = m;
624 0 return 0;
625 }
626 0 case AMQP_BASIC_RETURN_METHOD: {
627 0 amqp_basic_return_t *m = (amqp_basic_return_t *) amqp_pool_alloc(pool, sizeof(amqp_basic_return_t));
628 0 ▶ m->reply_code = D_16(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->reply_code = D_16(encoded, offset); 0 0 0
629 0 offset += 2;
630 0 ▶ m->reply_text.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->reply_text.len = D_8(encoded, offset); 0 0 0
631 0 offset++;
632 0 ▶ m->reply_text.bytes = D_BYTES(encoded, offset, m->reply_text.len);
Branch: 1 branch
BranchTrueFalseTotal
m->reply_text.bytes = D_BYTES(encoded, offset, m->reply_text.len); 0 0 0
633 0 offset += m->reply_text.len;
634 0 ▶ m->exchange.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->exchange.len = D_8(encoded, offset); 0 0 0
635 0 offset++;
636 0 ▶ m->exchange.bytes = D_BYTES(encoded, offset, m->exchange.len);
Branch: 1 branch
BranchTrueFalseTotal
m->exchange.bytes = D_BYTES(encoded, offset, m->exchange.len); 0 0 0
637 0 offset += m->exchange.len;
638 0 ▶ m->routing_key.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->routing_key.len = D_8(encoded, offset); 0 0 0
639 0 offset++;
640 0 ▶ m->routing_key.bytes = D_BYTES(encoded, offset, m->routing_key.len);
Branch: 1 branch
BranchTrueFalseTotal
m->routing_key.bytes = D_BYTES(encoded, offset, m->routing_key.len); 0 0 0
641 0 offset += m->routing_key.len;
642 0 *decoded = m;
643 0 return 0;
644 }
645 0 case AMQP_BASIC_DELIVER_METHOD: {
646 0 amqp_basic_deliver_t *m = (amqp_basic_deliver_t *) amqp_pool_alloc(pool, sizeof(amqp_basic_deliver_t));
647 0 ▶ m->consumer_tag.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->consumer_tag.len = D_8(encoded, offset); 0 0 0
648 0 offset++;
649 0 ▶ m->consumer_tag.bytes = D_BYTES(encoded, offset, m->consumer_tag.len);
Branch: 1 branch
BranchTrueFalseTotal
m->consumer_tag.bytes = D_BYTES(encoded, offset, m->consumer_tag.len); 0 0 0
650 0 offset += m->consumer_tag.len;
651 0 ▶ m->delivery_tag = D_64(encoded, offset);
Branch: 2 branches
BranchTrueFalseTotal
m->delivery_tag = D_64(encoded, offset); 0 0 0
m->delivery_tag = D_64(encoded, offset); 0 0 0
652 0 offset += 8;
653 0 ▶ bit_buffer = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
bit_buffer = D_8(encoded, offset); 0 0 0
654 0 offset++;
655 0 m->redelivered = (bit_buffer & (1 << 0)) ? 1 : 0;
656 0 ▶ m->exchange.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->exchange.len = D_8(encoded, offset); 0 0 0
657 0 offset++;
658 0 ▶ m->exchange.bytes = D_BYTES(encoded, offset, m->exchange.len);
Branch: 1 branch
BranchTrueFalseTotal
m->exchange.bytes = D_BYTES(encoded, offset, m->exchange.len); 0 0 0
659 0 offset += m->exchange.len;
660 0 ▶ m->routing_key.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->routing_key.len = D_8(encoded, offset); 0 0 0
661 0 offset++;
662 0 ▶ m->routing_key.bytes = D_BYTES(encoded, offset, m->routing_key.len);
Branch: 1 branch
BranchTrueFalseTotal
m->routing_key.bytes = D_BYTES(encoded, offset, m->routing_key.len); 0 0 0
663 0 offset += m->routing_key.len;
664 0 *decoded = m;
665 0 return 0;
666 }
667 0 case AMQP_BASIC_GET_METHOD: {
668 0 amqp_basic_get_t *m = (amqp_basic_get_t *) amqp_pool_alloc(pool, sizeof(amqp_basic_get_t));
669 0 ▶ m->ticket = D_16(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->ticket = D_16(encoded, offset); 0 0 0
670 0 offset += 2;
671 0 ▶ m->queue.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->queue.len = D_8(encoded, offset); 0 0 0
672 0 offset++;
673 0 ▶ m->queue.bytes = D_BYTES(encoded, offset, m->queue.len);
Branch: 1 branch
BranchTrueFalseTotal
m->queue.bytes = D_BYTES(encoded, offset, m->queue.len); 0 0 0
674 0 offset += m->queue.len;
675 0 ▶ bit_buffer = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
bit_buffer = D_8(encoded, offset); 0 0 0
676 0 offset++;
677 0 m->no_ack = (bit_buffer & (1 << 0)) ? 1 : 0;
678 0 *decoded = m;
679 0 return 0;
680 }
681 0 case AMQP_BASIC_GET_OK_METHOD: {
682 0 amqp_basic_get_ok_t *m = (amqp_basic_get_ok_t *) amqp_pool_alloc(pool, sizeof(amqp_basic_get_ok_t));
683 0 ▶ m->delivery_tag = D_64(encoded, offset);
Branch: 2 branches
BranchTrueFalseTotal
m->delivery_tag = D_64(encoded, offset); 0 0 0
m->delivery_tag = D_64(encoded, offset); 0 0 0
684 0 offset += 8;
685 0 ▶ bit_buffer = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
bit_buffer = D_8(encoded, offset); 0 0 0
686 0 offset++;
687 0 m->redelivered = (bit_buffer & (1 << 0)) ? 1 : 0;
688 0 ▶ m->exchange.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->exchange.len = D_8(encoded, offset); 0 0 0
689 0 offset++;
690 0 ▶ m->exchange.bytes = D_BYTES(encoded, offset, m->exchange.len);
Branch: 1 branch
BranchTrueFalseTotal
m->exchange.bytes = D_BYTES(encoded, offset, m->exchange.len); 0 0 0
691 0 offset += m->exchange.len;
692 0 ▶ m->routing_key.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->routing_key.len = D_8(encoded, offset); 0 0 0
693 0 offset++;
694 0 ▶ m->routing_key.bytes = D_BYTES(encoded, offset, m->routing_key.len);
Branch: 1 branch
BranchTrueFalseTotal
m->routing_key.bytes = D_BYTES(encoded, offset, m->routing_key.len); 0 0 0
695 0 offset += m->routing_key.len;
696 0 ▶ m->message_count = D_32(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->message_count = D_32(encoded, offset); 0 0 0
697 0 offset += 4;
698 0 *decoded = m;
699 0 return 0;
700 }
701 0 case AMQP_BASIC_GET_EMPTY_METHOD: {
702 0 amqp_basic_get_empty_t *m = (amqp_basic_get_empty_t *) amqp_pool_alloc(pool, sizeof(amqp_basic_get_empty_t));
703 0 ▶ m->cluster_id.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->cluster_id.len = D_8(encoded, offset); 0 0 0
704 0 offset++;
705 0 ▶ m->cluster_id.bytes = D_BYTES(encoded, offset, m->cluster_id.len);
Branch: 1 branch
BranchTrueFalseTotal
m->cluster_id.bytes = D_BYTES(encoded, offset, m->cluster_id.len); 0 0 0
706 0 offset += m->cluster_id.len;
707 0 *decoded = m;
708 0 return 0;
709 }
710 0 case AMQP_BASIC_ACK_METHOD: {
711 0 amqp_basic_ack_t *m = (amqp_basic_ack_t *) amqp_pool_alloc(pool, sizeof(amqp_basic_ack_t));
712 0 ▶ m->delivery_tag = D_64(encoded, offset);
Branch: 2 branches
BranchTrueFalseTotal
m->delivery_tag = D_64(encoded, offset); 0 0 0
m->delivery_tag = D_64(encoded, offset); 0 0 0
713 0 offset += 8;
714 0 ▶ bit_buffer = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
bit_buffer = D_8(encoded, offset); 0 0 0
715 0 offset++;
716 0 m->multiple = (bit_buffer & (1 << 0)) ? 1 : 0;
717 0 *decoded = m;
718 0 return 0;
719 }
720 0 case AMQP_BASIC_REJECT_METHOD: {
721 0 amqp_basic_reject_t *m = (amqp_basic_reject_t *) amqp_pool_alloc(pool, sizeof(amqp_basic_reject_t));
722 0 ▶ m->delivery_tag = D_64(encoded, offset);
Branch: 2 branches
BranchTrueFalseTotal
m->delivery_tag = D_64(encoded, offset); 0 0 0
m->delivery_tag = D_64(encoded, offset); 0 0 0
723 0 offset += 8;
724 0 ▶ bit_buffer = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
bit_buffer = D_8(encoded, offset); 0 0 0
725 0 offset++;
726 0 m->requeue = (bit_buffer & (1 << 0)) ? 1 : 0;
727 0 *decoded = m;
728 0 return 0;
729 }
730 0 case AMQP_BASIC_RECOVER_METHOD: {
731 0 amqp_basic_recover_t *m = (amqp_basic_recover_t *) amqp_pool_alloc(pool, sizeof(amqp_basic_recover_t));
732 0 ▶ bit_buffer = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
bit_buffer = D_8(encoded, offset); 0 0 0
733 0 offset++;
734 0 m->requeue = (bit_buffer & (1 << 0)) ? 1 : 0;
735 0 *decoded = m;
736 0 return 0;
737 }
738 0 case AMQP_FILE_QOS_METHOD: {
739 0 amqp_file_qos_t *m = (amqp_file_qos_t *) amqp_pool_alloc(pool, sizeof(amqp_file_qos_t));
740 0 ▶ m->prefetch_size = D_32(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->prefetch_size = D_32(encoded, offset); 0 0 0
741 0 offset += 4;
742 0 ▶ m->prefetch_count = D_16(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->prefetch_count = D_16(encoded, offset); 0 0 0
743 0 offset += 2;
744 0 ▶ bit_buffer = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
bit_buffer = D_8(encoded, offset); 0 0 0
745 0 offset++;
746 0 m->global = (bit_buffer & (1 << 0)) ? 1 : 0;
747 0 *decoded = m;
748 0 return 0;
749 }
750 0 case AMQP_FILE_QOS_OK_METHOD: {
751 0 amqp_file_qos_ok_t *m = (amqp_file_qos_ok_t *) amqp_pool_alloc(pool, sizeof(amqp_file_qos_ok_t));
752 0 *decoded = m;
753 0 return 0;
754 }
755 0 case AMQP_FILE_CONSUME_METHOD: {
756 0 amqp_file_consume_t *m = (amqp_file_consume_t *) amqp_pool_alloc(pool, sizeof(amqp_file_consume_t));
757 0 ▶ m->ticket = D_16(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->ticket = D_16(encoded, offset); 0 0 0
758 0 offset += 2;
759 0 ▶ m->queue.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->queue.len = D_8(encoded, offset); 0 0 0
760 0 offset++;
761 0 ▶ m->queue.bytes = D_BYTES(encoded, offset, m->queue.len);
Branch: 1 branch
BranchTrueFalseTotal
m->queue.bytes = D_BYTES(encoded, offset, m->queue.len); 0 0 0
762 0 offset += m->queue.len;
763 0 ▶ m->consumer_tag.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->consumer_tag.len = D_8(encoded, offset); 0 0 0
764 0 offset++;
765 0 ▶ m->consumer_tag.bytes = D_BYTES(encoded, offset, m->consumer_tag.len);
Branch: 1 branch
BranchTrueFalseTotal
m->consumer_tag.bytes = D_BYTES(encoded, offset, m->consumer_tag.len); 0 0 0
766 0 offset += m->consumer_tag.len;
767 0 ▶ bit_buffer = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
bit_buffer = D_8(encoded, offset); 0 0 0
768 0 offset++;
769 0 m->no_local = (bit_buffer & (1 << 0)) ? 1 : 0;
770 0 m->no_ack = (bit_buffer & (1 << 1)) ? 1 : 0;
771 0 m->exclusive = (bit_buffer & (1 << 2)) ? 1 : 0;
772 0 m->nowait = (bit_buffer & (1 << 3)) ? 1 : 0;
773 0 *decoded = m;
774 0 return 0;
775 }
776 0 case AMQP_FILE_CONSUME_OK_METHOD: {
777 0 amqp_file_consume_ok_t *m = (amqp_file_consume_ok_t *) amqp_pool_alloc(pool, sizeof(amqp_file_consume_ok_t));
778 0 ▶ m->consumer_tag.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->consumer_tag.len = D_8(encoded, offset); 0 0 0
779 0 offset++;
780 0 ▶ m->consumer_tag.bytes = D_BYTES(encoded, offset, m->consumer_tag.len);
Branch: 1 branch
BranchTrueFalseTotal
m->consumer_tag.bytes = D_BYTES(encoded, offset, m->consumer_tag.len); 0 0 0
781 0 offset += m->consumer_tag.len;
782 0 *decoded = m;
783 0 return 0;
784 }
785 0 case AMQP_FILE_CANCEL_METHOD: {
786 0 amqp_file_cancel_t *m = (amqp_file_cancel_t *) amqp_pool_alloc(pool, sizeof(amqp_file_cancel_t));
787 0 ▶ m->consumer_tag.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->consumer_tag.len = D_8(encoded, offset); 0 0 0
788 0 offset++;
789 0 ▶ m->consumer_tag.bytes = D_BYTES(encoded, offset, m->consumer_tag.len);
Branch: 1 branch
BranchTrueFalseTotal
m->consumer_tag.bytes = D_BYTES(encoded, offset, m->consumer_tag.len); 0 0 0
790 0 offset += m->consumer_tag.len;
791 0 ▶ bit_buffer = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
bit_buffer = D_8(encoded, offset); 0 0 0
792 0 offset++;
793 0 m->nowait = (bit_buffer & (1 << 0)) ? 1 : 0;
794 0 *decoded = m;
795 0 return 0;
796 }
797 0 case AMQP_FILE_CANCEL_OK_METHOD: {
798 0 amqp_file_cancel_ok_t *m = (amqp_file_cancel_ok_t *) amqp_pool_alloc(pool, sizeof(amqp_file_cancel_ok_t));
799 0 ▶ m->consumer_tag.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->consumer_tag.len = D_8(encoded, offset); 0 0 0
800 0 offset++;
801 0 ▶ m->consumer_tag.bytes = D_BYTES(encoded, offset, m->consumer_tag.len);
Branch: 1 branch
BranchTrueFalseTotal
m->consumer_tag.bytes = D_BYTES(encoded, offset, m->consumer_tag.len); 0 0 0
802 0 offset += m->consumer_tag.len;
803 0 *decoded = m;
804 0 return 0;
805 }
806 0 case AMQP_FILE_OPEN_METHOD: {
807 0 amqp_file_open_t *m = (amqp_file_open_t *) amqp_pool_alloc(pool, sizeof(amqp_file_open_t));
808 0 ▶ m->identifier.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->identifier.len = D_8(encoded, offset); 0 0 0
809 0 offset++;
810 0 ▶ m->identifier.bytes = D_BYTES(encoded, offset, m->identifier.len);
Branch: 1 branch
BranchTrueFalseTotal
m->identifier.bytes = D_BYTES(encoded, offset, m->identifier.len); 0 0 0
811 0 offset += m->identifier.len;
812 0 ▶ m->content_size = D_64(encoded, offset);
Branch: 2 branches
BranchTrueFalseTotal
m->content_size = D_64(encoded, offset); 0 0 0
m->content_size = D_64(encoded, offset); 0 0 0
813 0 offset += 8;
814 0 *decoded = m;
815 0 return 0;
816 }
817 0 case AMQP_FILE_OPEN_OK_METHOD: {
818 0 amqp_file_open_ok_t *m = (amqp_file_open_ok_t *) amqp_pool_alloc(pool, sizeof(amqp_file_open_ok_t));
819 0 ▶ m->staged_size = D_64(encoded, offset);
Branch: 2 branches
BranchTrueFalseTotal
m->staged_size = D_64(encoded, offset); 0 0 0
m->staged_size = D_64(encoded, offset); 0 0 0
820 0 offset += 8;
821 0 *decoded = m;
822 0 return 0;
823 }
824 0 case AMQP_FILE_STAGE_METHOD: {
825 0 amqp_file_stage_t *m = (amqp_file_stage_t *) amqp_pool_alloc(pool, sizeof(amqp_file_stage_t));
826 0 *decoded = m;
827 0 return 0;
828 }
829 0 case AMQP_FILE_PUBLISH_METHOD: {
830 0 amqp_file_publish_t *m = (amqp_file_publish_t *) amqp_pool_alloc(pool, sizeof(amqp_file_publish_t));
831 0 ▶ m->ticket = D_16(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->ticket = D_16(encoded, offset); 0 0 0
832 0 offset += 2;
833 0 ▶ m->exchange.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->exchange.len = D_8(encoded, offset); 0 0 0
834 0 offset++;
835 0 ▶ m->exchange.bytes = D_BYTES(encoded, offset, m->exchange.len);
Branch: 1 branch
BranchTrueFalseTotal
m->exchange.bytes = D_BYTES(encoded, offset, m->exchange.len); 0 0 0
836 0 offset += m->exchange.len;
837 0 ▶ m->routing_key.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->routing_key.len = D_8(encoded, offset); 0 0 0
838 0 offset++;
839 0 ▶ m->routing_key.bytes = D_BYTES(encoded, offset, m->routing_key.len);
Branch: 1 branch
BranchTrueFalseTotal
m->routing_key.bytes = D_BYTES(encoded, offset, m->routing_key.len); 0 0 0
840 0 offset += m->routing_key.len;
841 0 ▶ bit_buffer = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
bit_buffer = D_8(encoded, offset); 0 0 0
842 0 offset++;
843 0 m->mandatory = (bit_buffer & (1 << 0)) ? 1 : 0;
844 0 m->immediate = (bit_buffer & (1 << 1)) ? 1 : 0;
845 0 ▶ m->identifier.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->identifier.len = D_8(encoded, offset); 0 0 0
846 0 offset++;
847 0 ▶ m->identifier.bytes = D_BYTES(encoded, offset, m->identifier.len);
Branch: 1 branch
BranchTrueFalseTotal
m->identifier.bytes = D_BYTES(encoded, offset, m->identifier.len); 0 0 0
848 0 offset += m->identifier.len;
849 0 *decoded = m;
850 0 return 0;
851 }
852 0 case AMQP_FILE_RETURN_METHOD: {
853 0 amqp_file_return_t *m = (amqp_file_return_t *) amqp_pool_alloc(pool, sizeof(amqp_file_return_t));
854 0 ▶ m->reply_code = D_16(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->reply_code = D_16(encoded, offset); 0 0 0
855 0 offset += 2;
856 0 ▶ m->reply_text.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->reply_text.len = D_8(encoded, offset); 0 0 0
857 0 offset++;
858 0 ▶ m->reply_text.bytes = D_BYTES(encoded, offset, m->reply_text.len);
Branch: 1 branch
BranchTrueFalseTotal
m->reply_text.bytes = D_BYTES(encoded, offset, m->reply_text.len); 0 0 0
859 0 offset += m->reply_text.len;
860 0 ▶ m->exchange.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->exchange.len = D_8(encoded, offset); 0 0 0
861 0 offset++;
862 0 ▶ m->exchange.bytes = D_BYTES(encoded, offset, m->exchange.len);
Branch: 1 branch
BranchTrueFalseTotal
m->exchange.bytes = D_BYTES(encoded, offset, m->exchange.len); 0 0 0
863 0 offset += m->exchange.len;
864 0 ▶ m->routing_key.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->routing_key.len = D_8(encoded, offset); 0 0 0
865 0 offset++;
866 0 ▶ m->routing_key.bytes = D_BYTES(encoded, offset, m->routing_key.len);
Branch: 1 branch
BranchTrueFalseTotal
m->routing_key.bytes = D_BYTES(encoded, offset, m->routing_key.len); 0 0 0
867 0 offset += m->routing_key.len;
868 0 *decoded = m;
869 0 return 0;
870 }
871 0 case AMQP_FILE_DELIVER_METHOD: {
872 0 amqp_file_deliver_t *m = (amqp_file_deliver_t *) amqp_pool_alloc(pool, sizeof(amqp_file_deliver_t));
873 0 ▶ m->consumer_tag.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->consumer_tag.len = D_8(encoded, offset); 0 0 0
874 0 offset++;
875 0 ▶ m->consumer_tag.bytes = D_BYTES(encoded, offset, m->consumer_tag.len);
Branch: 1 branch
BranchTrueFalseTotal
m->consumer_tag.bytes = D_BYTES(encoded, offset, m->consumer_tag.len); 0 0 0
876 0 offset += m->consumer_tag.len;
877 0 ▶ m->delivery_tag = D_64(encoded, offset);
Branch: 2 branches
BranchTrueFalseTotal
m->delivery_tag = D_64(encoded, offset); 0 0 0
m->delivery_tag = D_64(encoded, offset); 0 0 0
878 0 offset += 8;
879 0 ▶ bit_buffer = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
bit_buffer = D_8(encoded, offset); 0 0 0
880 0 offset++;
881 0 m->redelivered = (bit_buffer & (1 << 0)) ? 1 : 0;
882 0 ▶ m->exchange.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->exchange.len = D_8(encoded, offset); 0 0 0
883 0 offset++;
884 0 ▶ m->exchange.bytes = D_BYTES(encoded, offset, m->exchange.len);
Branch: 1 branch
BranchTrueFalseTotal
m->exchange.bytes = D_BYTES(encoded, offset, m->exchange.len); 0 0 0
885 0 offset += m->exchange.len;
886 0 ▶ m->routing_key.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->routing_key.len = D_8(encoded, offset); 0 0 0
887 0 offset++;
888 0 ▶ m->routing_key.bytes = D_BYTES(encoded, offset, m->routing_key.len);
Branch: 1 branch
BranchTrueFalseTotal
m->routing_key.bytes = D_BYTES(encoded, offset, m->routing_key.len); 0 0 0
889 0 offset += m->routing_key.len;
890 0 ▶ m->identifier.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->identifier.len = D_8(encoded, offset); 0 0 0
891 0 offset++;
892 0 ▶ m->identifier.bytes = D_BYTES(encoded, offset, m->identifier.len);
Branch: 1 branch
BranchTrueFalseTotal
m->identifier.bytes = D_BYTES(encoded, offset, m->identifier.len); 0 0 0
893 0 offset += m->identifier.len;
894 0 *decoded = m;
895 0 return 0;
896 }
897 0 case AMQP_FILE_ACK_METHOD: {
898 0 amqp_file_ack_t *m = (amqp_file_ack_t *) amqp_pool_alloc(pool, sizeof(amqp_file_ack_t));
899 0 ▶ m->delivery_tag = D_64(encoded, offset);
Branch: 2 branches
BranchTrueFalseTotal
m->delivery_tag = D_64(encoded, offset); 0 0 0
m->delivery_tag = D_64(encoded, offset); 0 0 0
900 0 offset += 8;
901 0 ▶ bit_buffer = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
bit_buffer = D_8(encoded, offset); 0 0 0
902 0 offset++;
903 0 m->multiple = (bit_buffer & (1 << 0)) ? 1 : 0;
904 0 *decoded = m;
905 0 return 0;
906 }
907 0 case AMQP_FILE_REJECT_METHOD: {
908 0 amqp_file_reject_t *m = (amqp_file_reject_t *) amqp_pool_alloc(pool, sizeof(amqp_file_reject_t));
909 0 ▶ m->delivery_tag = D_64(encoded, offset);
Branch: 2 branches
BranchTrueFalseTotal
m->delivery_tag = D_64(encoded, offset); 0 0 0
m->delivery_tag = D_64(encoded, offset); 0 0 0
910 0 offset += 8;
911 0 ▶ bit_buffer = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
bit_buffer = D_8(encoded, offset); 0 0 0
912 0 offset++;
913 0 m->requeue = (bit_buffer & (1 << 0)) ? 1 : 0;
914 0 *decoded = m;
915 0 return 0;
916 }
917 0 case AMQP_STREAM_QOS_METHOD: {
918 0 amqp_stream_qos_t *m = (amqp_stream_qos_t *) amqp_pool_alloc(pool, sizeof(amqp_stream_qos_t));
919 0 ▶ m->prefetch_size = D_32(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->prefetch_size = D_32(encoded, offset); 0 0 0
920 0 offset += 4;
921 0 ▶ m->prefetch_count = D_16(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->prefetch_count = D_16(encoded, offset); 0 0 0
922 0 offset += 2;
923 0 ▶ m->consume_rate = D_32(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->consume_rate = D_32(encoded, offset); 0 0 0
924 0 offset += 4;
925 0 ▶ bit_buffer = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
bit_buffer = D_8(encoded, offset); 0 0 0
926 0 offset++;
927 0 m->global = (bit_buffer & (1 << 0)) ? 1 : 0;
928 0 *decoded = m;
929 0 return 0;
930 }
931 0 case AMQP_STREAM_QOS_OK_METHOD: {
932 0 amqp_stream_qos_ok_t *m = (amqp_stream_qos_ok_t *) amqp_pool_alloc(pool, sizeof(amqp_stream_qos_ok_t));
933 0 *decoded = m;
934 0 return 0;
935 }
936 0 case AMQP_STREAM_CONSUME_METHOD: {
937 0 amqp_stream_consume_t *m = (amqp_stream_consume_t *) amqp_pool_alloc(pool, sizeof(amqp_stream_consume_t));
938 0 ▶ m->ticket = D_16(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->ticket = D_16(encoded, offset); 0 0 0
939 0 offset += 2;
940 0 ▶ m->queue.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->queue.len = D_8(encoded, offset); 0 0 0
941 0 offset++;
942 0 ▶ m->queue.bytes = D_BYTES(encoded, offset, m->queue.len);
Branch: 1 branch
BranchTrueFalseTotal
m->queue.bytes = D_BYTES(encoded, offset, m->queue.len); 0 0 0
943 0 offset += m->queue.len;
944 0 ▶ m->consumer_tag.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->consumer_tag.len = D_8(encoded, offset); 0 0 0
945 0 offset++;
946 0 ▶ m->consumer_tag.bytes = D_BYTES(encoded, offset, m->consumer_tag.len);
Branch: 1 branch
BranchTrueFalseTotal
m->consumer_tag.bytes = D_BYTES(encoded, offset, m->consumer_tag.len); 0 0 0
947 0 offset += m->consumer_tag.len;
948 0 ▶ bit_buffer = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
bit_buffer = D_8(encoded, offset); 0 0 0
949 0 offset++;
950 0 m->no_local = (bit_buffer & (1 << 0)) ? 1 : 0;
951 0 m->exclusive = (bit_buffer & (1 << 1)) ? 1 : 0;
952 0 m->nowait = (bit_buffer & (1 << 2)) ? 1 : 0;
953 0 *decoded = m;
954 0 return 0;
955 }
956 0 case AMQP_STREAM_CONSUME_OK_METHOD: {
957 0 amqp_stream_consume_ok_t *m = (amqp_stream_consume_ok_t *) amqp_pool_alloc(pool, sizeof(amqp_stream_consume_ok_t));
958 0 ▶ m->consumer_tag.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->consumer_tag.len = D_8(encoded, offset); 0 0 0
959 0 offset++;
960 0 ▶ m->consumer_tag.bytes = D_BYTES(encoded, offset, m->consumer_tag.len);
Branch: 1 branch
BranchTrueFalseTotal
m->consumer_tag.bytes = D_BYTES(encoded, offset, m->consumer_tag.len); 0 0 0
961 0 offset += m->consumer_tag.len;
962 0 *decoded = m;
963 0 return 0;
964 }
965 0 case AMQP_STREAM_CANCEL_METHOD: {
966 0 amqp_stream_cancel_t *m = (amqp_stream_cancel_t *) amqp_pool_alloc(pool, sizeof(amqp_stream_cancel_t));
967 0 ▶ m->consumer_tag.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->consumer_tag.len = D_8(encoded, offset); 0 0 0
968 0 offset++;
969 0 ▶ m->consumer_tag.bytes = D_BYTES(encoded, offset, m->consumer_tag.len);
Branch: 1 branch
BranchTrueFalseTotal
m->consumer_tag.bytes = D_BYTES(encoded, offset, m->consumer_tag.len); 0 0 0
970 0 offset += m->consumer_tag.len;
971 0 ▶ bit_buffer = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
bit_buffer = D_8(encoded, offset); 0 0 0
972 0 offset++;
973 0 m->nowait = (bit_buffer & (1 << 0)) ? 1 : 0;
974 0 *decoded = m;
975 0 return 0;
976 }
977 0 case AMQP_STREAM_CANCEL_OK_METHOD: {
978 0 amqp_stream_cancel_ok_t *m = (amqp_stream_cancel_ok_t *) amqp_pool_alloc(pool, sizeof(amqp_stream_cancel_ok_t));
979 0 ▶ m->consumer_tag.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->consumer_tag.len = D_8(encoded, offset); 0 0 0
980 0 offset++;
981 0 ▶ m->consumer_tag.bytes = D_BYTES(encoded, offset, m->consumer_tag.len);
Branch: 1 branch
BranchTrueFalseTotal
m->consumer_tag.bytes = D_BYTES(encoded, offset, m->consumer_tag.len); 0 0 0
982 0 offset += m->consumer_tag.len;
983 0 *decoded = m;
984 0 return 0;
985 }
986 0 case AMQP_STREAM_PUBLISH_METHOD: {
987 0 amqp_stream_publish_t *m = (amqp_stream_publish_t *) amqp_pool_alloc(pool, sizeof(amqp_stream_publish_t));
988 0 ▶ m->ticket = D_16(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->ticket = D_16(encoded, offset); 0 0 0
989 0 offset += 2;
990 0 ▶ m->exchange.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->exchange.len = D_8(encoded, offset); 0 0 0
991 0 offset++;
992 0 ▶ m->exchange.bytes = D_BYTES(encoded, offset, m->exchange.len);
Branch: 1 branch
BranchTrueFalseTotal
m->exchange.bytes = D_BYTES(encoded, offset, m->exchange.len); 0 0 0
993 0 offset += m->exchange.len;
994 0 ▶ m->routing_key.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->routing_key.len = D_8(encoded, offset); 0 0 0
995 0 offset++;
996 0 ▶ m->routing_key.bytes = D_BYTES(encoded, offset, m->routing_key.len);
Branch: 1 branch
BranchTrueFalseTotal
m->routing_key.bytes = D_BYTES(encoded, offset, m->routing_key.len); 0 0 0
997 0 offset += m->routing_key.len;
998 0 ▶ bit_buffer = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
bit_buffer = D_8(encoded, offset); 0 0 0
999 0 offset++;
1000 0 m->mandatory = (bit_buffer & (1 << 0)) ? 1 : 0;
1001 0 m->immediate = (bit_buffer & (1 << 1)) ? 1 : 0;
1002 0 *decoded = m;
1003 0 return 0;
1004 }
1005 0 case AMQP_STREAM_RETURN_METHOD: {
1006 0 amqp_stream_return_t *m = (amqp_stream_return_t *) amqp_pool_alloc(pool, sizeof(amqp_stream_return_t));
1007 0 ▶ m->reply_code = D_16(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->reply_code = D_16(encoded, offset); 0 0 0
1008 0 offset += 2;
1009 0 ▶ m->reply_text.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->reply_text.len = D_8(encoded, offset); 0 0 0
1010 0 offset++;
1011 0 ▶ m->reply_text.bytes = D_BYTES(encoded, offset, m->reply_text.len);
Branch: 1 branch
BranchTrueFalseTotal
m->reply_text.bytes = D_BYTES(encoded, offset, m->reply_text.len); 0 0 0
1012 0 offset += m->reply_text.len;
1013 0 ▶ m->exchange.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->exchange.len = D_8(encoded, offset); 0 0 0
1014 0 offset++;
1015 0 ▶ m->exchange.bytes = D_BYTES(encoded, offset, m->exchange.len);
Branch: 1 branch
BranchTrueFalseTotal
m->exchange.bytes = D_BYTES(encoded, offset, m->exchange.len); 0 0 0
1016 0 offset += m->exchange.len;
1017 0 ▶ m->routing_key.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->routing_key.len = D_8(encoded, offset); 0 0 0
1018 0 offset++;
1019 0 ▶ m->routing_key.bytes = D_BYTES(encoded, offset, m->routing_key.len);
Branch: 1 branch
BranchTrueFalseTotal
m->routing_key.bytes = D_BYTES(encoded, offset, m->routing_key.len); 0 0 0
1020 0 offset += m->routing_key.len;
1021 0 *decoded = m;
1022 0 return 0;
1023 }
1024 0 case AMQP_STREAM_DELIVER_METHOD: {
1025 0 amqp_stream_deliver_t *m = (amqp_stream_deliver_t *) amqp_pool_alloc(pool, sizeof(amqp_stream_deliver_t));
1026 0 ▶ m->consumer_tag.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->consumer_tag.len = D_8(encoded, offset); 0 0 0
1027 0 offset++;
1028 0 ▶ m->consumer_tag.bytes = D_BYTES(encoded, offset, m->consumer_tag.len);
Branch: 1 branch
BranchTrueFalseTotal
m->consumer_tag.bytes = D_BYTES(encoded, offset, m->consumer_tag.len); 0 0 0
1029 0 offset += m->consumer_tag.len;
1030 0 ▶ m->delivery_tag = D_64(encoded, offset);
Branch: 2 branches
BranchTrueFalseTotal
m->delivery_tag = D_64(encoded, offset); 0 0 0
m->delivery_tag = D_64(encoded, offset); 0 0 0
1031 0 offset += 8;
1032 0 ▶ m->exchange.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->exchange.len = D_8(encoded, offset); 0 0 0
1033 0 offset++;
1034 0 ▶ m->exchange.bytes = D_BYTES(encoded, offset, m->exchange.len);
Branch: 1 branch
BranchTrueFalseTotal
m->exchange.bytes = D_BYTES(encoded, offset, m->exchange.len); 0 0 0
1035 0 offset += m->exchange.len;
1036 0 ▶ m->queue.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->queue.len = D_8(encoded, offset); 0 0 0
1037 0 offset++;
1038 0 ▶ m->queue.bytes = D_BYTES(encoded, offset, m->queue.len);
Branch: 1 branch
BranchTrueFalseTotal
m->queue.bytes = D_BYTES(encoded, offset, m->queue.len); 0 0 0
1039 0 offset += m->queue.len;
1040 0 *decoded = m;
1041 0 return 0;
1042 }
1043 0 case AMQP_TX_SELECT_METHOD: {
1044 0 amqp_tx_select_t *m = (amqp_tx_select_t *) amqp_pool_alloc(pool, sizeof(amqp_tx_select_t));
1045 0 *decoded = m;
1046 0 return 0;
1047 }
1048 0 case AMQP_TX_SELECT_OK_METHOD: {
1049 0 amqp_tx_select_ok_t *m = (amqp_tx_select_ok_t *) amqp_pool_alloc(pool, sizeof(amqp_tx_select_ok_t));
1050 0 *decoded = m;
1051 0 return 0;
1052 }
1053 0 case AMQP_TX_COMMIT_METHOD: {
1054 0 amqp_tx_commit_t *m = (amqp_tx_commit_t *) amqp_pool_alloc(pool, sizeof(amqp_tx_commit_t));
1055 0 *decoded = m;
1056 0 return 0;
1057 }
1058 0 case AMQP_TX_COMMIT_OK_METHOD: {
1059 0 amqp_tx_commit_ok_t *m = (amqp_tx_commit_ok_t *) amqp_pool_alloc(pool, sizeof(amqp_tx_commit_ok_t));
1060 0 *decoded = m;
1061 0 return 0;
1062 }
1063 0 case AMQP_TX_ROLLBACK_METHOD: {
1064 0 amqp_tx_rollback_t *m = (amqp_tx_rollback_t *) amqp_pool_alloc(pool, sizeof(amqp_tx_rollback_t));
1065 0 *decoded = m;
1066 0 return 0;
1067 }
1068 0 case AMQP_TX_ROLLBACK_OK_METHOD: {
1069 0 amqp_tx_rollback_ok_t *m = (amqp_tx_rollback_ok_t *) amqp_pool_alloc(pool, sizeof(amqp_tx_rollback_ok_t));
1070 0 *decoded = m;
1071 0 return 0;
1072 }
1073 0 case AMQP_DTX_SELECT_METHOD: {
1074 0 amqp_dtx_select_t *m = (amqp_dtx_select_t *) amqp_pool_alloc(pool, sizeof(amqp_dtx_select_t));
1075 0 *decoded = m;
1076 0 return 0;
1077 }
1078 0 case AMQP_DTX_SELECT_OK_METHOD: {
1079 0 amqp_dtx_select_ok_t *m = (amqp_dtx_select_ok_t *) amqp_pool_alloc(pool, sizeof(amqp_dtx_select_ok_t));
1080 0 *decoded = m;
1081 0 return 0;
1082 }
1083 0 case AMQP_DTX_START_METHOD: {
1084 0 amqp_dtx_start_t *m = (amqp_dtx_start_t *) amqp_pool_alloc(pool, sizeof(amqp_dtx_start_t));
1085 0 ▶ m->dtx_identifier.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->dtx_identifier.len = D_8(encoded, offset); 0 0 0
1086 0 offset++;
1087 0 ▶ m->dtx_identifier.bytes = D_BYTES(encoded, offset, m->dtx_identifier.len);
Branch: 1 branch
BranchTrueFalseTotal
m->dtx_identifier.bytes = D_BYTES(encoded, offset, m->dtx_identifier.len); 0 0 0
1088 0 offset += m->dtx_identifier.len;
1089 0 *decoded = m;
1090 0 return 0;
1091 }
1092 0 case AMQP_DTX_START_OK_METHOD: {
1093 0 amqp_dtx_start_ok_t *m = (amqp_dtx_start_ok_t *) amqp_pool_alloc(pool, sizeof(amqp_dtx_start_ok_t));
1094 0 *decoded = m;
1095 0 return 0;
1096 }
1097 0 case AMQP_TUNNEL_REQUEST_METHOD: {
1098 0 amqp_tunnel_request_t *m = (amqp_tunnel_request_t *) amqp_pool_alloc(pool, sizeof(amqp_tunnel_request_t));
1099 0 table_result = amqp_decode_table(encoded, pool, &(m->meta_data), &offset);
1100 0 ▶ AMQP_CHECK_RESULT(table_result);
Branch: 1 branch
BranchTrueFalseTotal
AMQP_CHECK_RESULT(table_result); 0 0 0
1101 0 *decoded = m;
1102 0 return 0;
1103 }
1104 0 case AMQP_TEST_INTEGER_METHOD: {
1105 0 amqp_test_integer_t *m = (amqp_test_integer_t *) amqp_pool_alloc(pool, sizeof(amqp_test_integer_t));
1106 0 ▶ m->integer_1 = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->integer_1 = D_8(encoded, offset); 0 0 0
1107 0 offset++;
1108 0 ▶ m->integer_2 = D_16(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->integer_2 = D_16(encoded, offset); 0 0 0
1109 0 offset += 2;
1110 0 ▶ m->integer_3 = D_32(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->integer_3 = D_32(encoded, offset); 0 0 0
1111 0 offset += 4;
1112 0 ▶ m->integer_4 = D_64(encoded, offset);
Branch: 2 branches
BranchTrueFalseTotal
m->integer_4 = D_64(encoded, offset); 0 0 0
m->integer_4 = D_64(encoded, offset); 0 0 0
1113 0 offset += 8;
1114 0 ▶ m->operation = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->operation = D_8(encoded, offset); 0 0 0
1115 0 offset++;
1116 0 *decoded = m;
1117 0 return 0;
1118 }
1119 0 case AMQP_TEST_INTEGER_OK_METHOD: {
1120 0 amqp_test_integer_ok_t *m = (amqp_test_integer_ok_t *) amqp_pool_alloc(pool, sizeof(amqp_test_integer_ok_t));
1121 0 ▶ m->result = D_64(encoded, offset);
Branch: 2 branches
BranchTrueFalseTotal
m->result = D_64(encoded, offset); 0 0 0
m->result = D_64(encoded, offset); 0 0 0
1122 0 offset += 8;
1123 0 *decoded = m;
1124 0 return 0;
1125 }
1126 0 case AMQP_TEST_STRING_METHOD: {
1127 0 amqp_test_string_t *m = (amqp_test_string_t *) amqp_pool_alloc(pool, sizeof(amqp_test_string_t));
1128 0 ▶ m->string_1.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->string_1.len = D_8(encoded, offset); 0 0 0
1129 0 offset++;
1130 0 ▶ m->string_1.bytes = D_BYTES(encoded, offset, m->string_1.len);
Branch: 1 branch
BranchTrueFalseTotal
m->string_1.bytes = D_BYTES(encoded, offset, m->string_1.len); 0 0 0
1131 0 offset += m->string_1.len;
1132 0 ▶ m->string_2.len = D_32(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->string_2.len = D_32(encoded, offset); 0 0 0
1133 0 offset += 4;
1134 0 ▶ m->string_2.bytes = D_BYTES(encoded, offset, m->string_2.len);
Branch: 1 branch
BranchTrueFalseTotal
m->string_2.bytes = D_BYTES(encoded, offset, m->string_2.len); 0 0 0
1135 0 offset += m->string_2.len;
1136 0 ▶ m->operation = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->operation = D_8(encoded, offset); 0 0 0
1137 0 offset++;
1138 0 *decoded = m;
1139 0 return 0;
1140 }
1141 0 case AMQP_TEST_STRING_OK_METHOD: {
1142 0 amqp_test_string_ok_t *m = (amqp_test_string_ok_t *) amqp_pool_alloc(pool, sizeof(amqp_test_string_ok_t));
1143 0 ▶ m->result.len = D_32(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->result.len = D_32(encoded, offset); 0 0 0
1144 0 offset += 4;
1145 0 ▶ m->result.bytes = D_BYTES(encoded, offset, m->result.len);
Branch: 1 branch
BranchTrueFalseTotal
m->result.bytes = D_BYTES(encoded, offset, m->result.len); 0 0 0
1146 0 offset += m->result.len;
1147 0 *decoded = m;
1148 0 return 0;
1149 }
1150 0 case AMQP_TEST_TABLE_METHOD: {
1151 0 amqp_test_table_t *m = (amqp_test_table_t *) amqp_pool_alloc(pool, sizeof(amqp_test_table_t));
1152 0 table_result = amqp_decode_table(encoded, pool, &(m->table), &offset);
1153 0 ▶ AMQP_CHECK_RESULT(table_result);
Branch: 1 branch
BranchTrueFalseTotal
AMQP_CHECK_RESULT(table_result); 0 0 0
1154 0 ▶ m->integer_op = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->integer_op = D_8(encoded, offset); 0 0 0
1155 0 offset++;
1156 0 ▶ m->string_op = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->string_op = D_8(encoded, offset); 0 0 0
1157 0 offset++;
1158 0 *decoded = m;
1159 0 return 0;
1160 }
1161 0 case AMQP_TEST_TABLE_OK_METHOD: {
1162 0 amqp_test_table_ok_t *m = (amqp_test_table_ok_t *) amqp_pool_alloc(pool, sizeof(amqp_test_table_ok_t));
1163 0 ▶ m->integer_result = D_64(encoded, offset);
Branch: 2 branches
BranchTrueFalseTotal
m->integer_result = D_64(encoded, offset); 0 0 0
m->integer_result = D_64(encoded, offset); 0 0 0
1164 0 offset += 8;
1165 0 ▶ m->string_result.len = D_32(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->string_result.len = D_32(encoded, offset); 0 0 0
1166 0 offset += 4;
1167 0 ▶ m->string_result.bytes = D_BYTES(encoded, offset, m->string_result.len);
Branch: 1 branch
BranchTrueFalseTotal
m->string_result.bytes = D_BYTES(encoded, offset, m->string_result.len); 0 0 0
1168 0 offset += m->string_result.len;
1169 0 *decoded = m;
1170 0 return 0;
1171 }
1172 0 case AMQP_TEST_CONTENT_METHOD: {
1173 0 amqp_test_content_t *m = (amqp_test_content_t *) amqp_pool_alloc(pool, sizeof(amqp_test_content_t));
1174 0 *decoded = m;
1175 0 return 0;
1176 }
1177 0 case AMQP_TEST_CONTENT_OK_METHOD: {
1178 0 amqp_test_content_ok_t *m = (amqp_test_content_ok_t *) amqp_pool_alloc(pool, sizeof(amqp_test_content_ok_t));
1179 0 ▶ m->content_checksum = D_32(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
m->content_checksum = D_32(encoded, offset); 0 0 0
1180 0 offset += 4;
1181 0 *decoded = m;
1182 0 return 0;
1183 }
1184 0 default: return -ENOENT;
1185 }
1186 }
1187  
1188 0 int amqp_decode_properties(uint16_t class_id,
1189 amqp_pool_t *pool,
1190 amqp_bytes_t encoded,
1191 void **decoded)
1192 {
1193 0 int offset = 0;
1194 int table_result;
1195  
1196 0 amqp_flags_t flags = 0;
1197 0 int flagword_index = 0;
1198 amqp_flags_t partial_flags;
1199  
1200 do {
1201 0 ▶ partial_flags = D_16(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
partial_flags = D_16(encoded, offset); 0 0 0
1202 0 offset += 2;
1203 0 flags |= (partial_flags << (flagword_index * 16));
1204 0 flagword_index++;
1205 0 ▶ } while (partial_flags & 1);
Branch: 1 branch
BranchTrueFalseTotal
} while (partial_flags & 1); 0 0 0
1206  
1207 0 switch (class_id) {
1208 0 case 10: {
1209 0 amqp_connection_properties_t *p = (amqp_connection_properties_t *) amqp_pool_alloc(pool, sizeof(amqp_connection_properties_t));
1210 0 p->_flags = flags;
1211 0 *decoded = p;
1212 0 return 0;
1213 }
1214 0 case 20: {
1215 0 amqp_channel_properties_t *p = (amqp_channel_properties_t *) amqp_pool_alloc(pool, sizeof(amqp_channel_properties_t));
1216 0 p->_flags = flags;
1217 0 *decoded = p;
1218 0 return 0;
1219 }
1220 0 case 30: {
1221 0 amqp_access_properties_t *p = (amqp_access_properties_t *) amqp_pool_alloc(pool, sizeof(amqp_access_properties_t));
1222 0 p->_flags = flags;
1223 0 *decoded = p;
1224 0 return 0;
1225 }
1226 0 case 40: {
1227 0 amqp_exchange_properties_t *p = (amqp_exchange_properties_t *) amqp_pool_alloc(pool, sizeof(amqp_exchange_properties_t));
1228 0 p->_flags = flags;
1229 0 *decoded = p;
1230 0 return 0;
1231 }
1232 0 case 50: {
1233 0 amqp_queue_properties_t *p = (amqp_queue_properties_t *) amqp_pool_alloc(pool, sizeof(amqp_queue_properties_t));
1234 0 p->_flags = flags;
1235 0 *decoded = p;
1236 0 return 0;
1237 }
1238 0 case 60: {
1239 0 amqp_basic_properties_t *p = (amqp_basic_properties_t *) amqp_pool_alloc(pool, sizeof(amqp_basic_properties_t));
1240 0 p->_flags = flags;
1241 0 ▶ if (flags & AMQP_BASIC_CONTENT_TYPE_FLAG) {
Branch: 1 branch
BranchTrueFalseTotal
if (flags & AMQP_BASIC_CONTENT_TYPE_FLAG) { 0 0 0
1242 0 ▶ p->content_type.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
p->content_type.len = D_8(encoded, offset); 0 0 0
1243 0 offset++;
1244 0 ▶ p->content_type.bytes = D_BYTES(encoded, offset, p->content_type.len);
Branch: 1 branch
BranchTrueFalseTotal
p->content_type.bytes = D_BYTES(encoded, offset, p->content_type.len); 0 0 0
1245 0 offset += p->content_type.len;
1246 }
1247 0 ▶ if (flags & AMQP_BASIC_CONTENT_ENCODING_FLAG) {
Branch: 1 branch
BranchTrueFalseTotal
if (flags & AMQP_BASIC_CONTENT_ENCODING_FLAG) { 0 0 0
1248 0 ▶ p->content_encoding.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
p->content_encoding.len = D_8(encoded, offset); 0 0 0
1249 0 offset++;
1250 0 ▶ p->content_encoding.bytes = D_BYTES(encoded, offset, p->content_encoding.len);
Branch: 1 branch
BranchTrueFalseTotal
p->content_encoding.bytes = D_BYTES(encoded, offset, p->content_encoding.len); 0 0 0
1251 0 offset += p->content_encoding.len;
1252 }
1253 0 ▶ if (flags & AMQP_BASIC_HEADERS_FLAG) {
Branch: 1 branch
BranchTrueFalseTotal
if (flags & AMQP_BASIC_HEADERS_FLAG) { 0 0 0
1254 0 table_result = amqp_decode_table(encoded, pool, &(p->headers), &offset);
1255 0 ▶ AMQP_CHECK_RESULT(table_result);
Branch: 1 branch
BranchTrueFalseTotal
AMQP_CHECK_RESULT(table_result); 0 0 0
1256 }
1257 0 ▶ if (flags & AMQP_BASIC_DELIVERY_MODE_FLAG) {
Branch: 1 branch
BranchTrueFalseTotal
if (flags & AMQP_BASIC_DELIVERY_MODE_FLAG) { 0 0 0
1258 0 ▶ p->delivery_mode = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
p->delivery_mode = D_8(encoded, offset); 0 0 0
1259 0 offset++;
1260 }
1261 0 ▶ if (flags & AMQP_BASIC_PRIORITY_FLAG) {
Branch: 1 branch
BranchTrueFalseTotal
if (flags & AMQP_BASIC_PRIORITY_FLAG) { 0 0 0
1262 0 ▶ p->priority = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
p->priority = D_8(encoded, offset); 0 0 0
1263 0 offset++;
1264 }
1265 0 ▶ if (flags & AMQP_BASIC_CORRELATION_ID_FLAG) {
Branch: 1 branch
BranchTrueFalseTotal
if (flags & AMQP_BASIC_CORRELATION_ID_FLAG) { 0 0 0
1266 0 ▶ p->correlation_id.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
p->correlation_id.len = D_8(encoded, offset); 0 0 0
1267 0 offset++;
1268 0 ▶ p->correlation_id.bytes = D_BYTES(encoded, offset, p->correlation_id.len);
Branch: 1 branch
BranchTrueFalseTotal
p->correlation_id.bytes = D_BYTES(encoded, offset, p->correlation_id.len); 0 0 0
1269 0 offset += p->correlation_id.len;
1270 }
1271 0 ▶ if (flags & AMQP_BASIC_REPLY_TO_FLAG) {
Branch: 1 branch
BranchTrueFalseTotal
if (flags & AMQP_BASIC_REPLY_TO_FLAG) { 0 0 0
1272 0 ▶ p->reply_to.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
p->reply_to.len = D_8(encoded, offset); 0 0 0
1273 0 offset++;
1274 0 ▶ p->reply_to.bytes = D_BYTES(encoded, offset, p->reply_to.len);
Branch: 1 branch
BranchTrueFalseTotal
p->reply_to.bytes = D_BYTES(encoded, offset, p->reply_to.len); 0 0 0
1275 0 offset += p->reply_to.len;
1276 }
1277 0 ▶ if (flags & AMQP_BASIC_EXPIRATION_FLAG) {
Branch: 1 branch
BranchTrueFalseTotal
if (flags & AMQP_BASIC_EXPIRATION_FLAG) { 0 0 0
1278 0 ▶ p->expiration.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
p->expiration.len = D_8(encoded, offset); 0 0 0
1279 0 offset++;
1280 0 ▶ p->expiration.bytes = D_BYTES(encoded, offset, p->expiration.len);
Branch: 1 branch
BranchTrueFalseTotal
p->expiration.bytes = D_BYTES(encoded, offset, p->expiration.len); 0 0 0
1281 0 offset += p->expiration.len;
1282 }
1283 0 ▶ if (flags & AMQP_BASIC_MESSAGE_ID_FLAG) {
Branch: 1 branch
BranchTrueFalseTotal
if (flags & AMQP_BASIC_MESSAGE_ID_FLAG) { 0 0 0
1284 0 ▶ p->message_id.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
p->message_id.len = D_8(encoded, offset); 0 0 0
1285 0 offset++;
1286 0 ▶ p->message_id.bytes = D_BYTES(encoded, offset, p->message_id.len);
Branch: 1 branch
BranchTrueFalseTotal
p->message_id.bytes = D_BYTES(encoded, offset, p->message_id.len); 0 0 0
1287 0 offset += p->message_id.len;
1288 }
1289 0 ▶ if (flags & AMQP_BASIC_TIMESTAMP_FLAG) {
Branch: 1 branch
BranchTrueFalseTotal
if (flags & AMQP_BASIC_TIMESTAMP_FLAG) { 0 0 0
1290 0 ▶ p->timestamp = D_64(encoded, offset);
Branch: 2 branches
BranchTrueFalseTotal
p->timestamp = D_64(encoded, offset); 0 0 0
p->timestamp = D_64(encoded, offset); 0 0 0
1291 0 offset += 8;
1292 }
1293 0 ▶ if (flags & AMQP_BASIC_TYPE_FLAG) {
Branch: 1 branch
BranchTrueFalseTotal
if (flags & AMQP_BASIC_TYPE_FLAG) { 0 0 0
1294 0 ▶ p->type.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
p->type.len = D_8(encoded, offset); 0 0 0
1295 0 offset++;
1296 0 ▶ p->type.bytes = D_BYTES(encoded, offset, p->type.len);
Branch: 1 branch
BranchTrueFalseTotal
p->type.bytes = D_BYTES(encoded, offset, p->type.len); 0 0 0
1297 0 offset += p->type.len;
1298 }
1299 0 ▶ if (flags & AMQP_BASIC_USER_ID_FLAG) {
Branch: 1 branch
BranchTrueFalseTotal
if (flags & AMQP_BASIC_USER_ID_FLAG) { 0 0 0
1300 0 ▶ p->user_id.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
p->user_id.len = D_8(encoded, offset); 0 0 0
1301 0 offset++;
1302 0 ▶ p->user_id.bytes = D_BYTES(encoded, offset, p->user_id.len);
Branch: 1 branch
BranchTrueFalseTotal
p->user_id.bytes = D_BYTES(encoded, offset, p->user_id.len); 0 0 0
1303 0 offset += p->user_id.len;
1304 }
1305 0 ▶ if (flags & AMQP_BASIC_APP_ID_FLAG) {
Branch: 1 branch
BranchTrueFalseTotal
if (flags & AMQP_BASIC_APP_ID_FLAG) { 0 0 0
1306 0 ▶ p->app_id.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
p->app_id.len = D_8(encoded, offset); 0 0 0
1307 0 offset++;
1308 0 ▶ p->app_id.bytes = D_BYTES(encoded, offset, p->app_id.len);
Branch: 1 branch
BranchTrueFalseTotal
p->app_id.bytes = D_BYTES(encoded, offset, p->app_id.len); 0 0 0
1309 0 offset += p->app_id.len;
1310 }
1311 0 ▶ if (flags & AMQP_BASIC_CLUSTER_ID_FLAG) {
Branch: 1 branch
BranchTrueFalseTotal
if (flags & AMQP_BASIC_CLUSTER_ID_FLAG) { 0 0 0
1312 0 ▶ p->cluster_id.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
p->cluster_id.len = D_8(encoded, offset); 0 0 0
1313 0 offset++;
1314 0 ▶ p->cluster_id.bytes = D_BYTES(encoded, offset, p->cluster_id.len);
Branch: 1 branch
BranchTrueFalseTotal
p->cluster_id.bytes = D_BYTES(encoded, offset, p->cluster_id.len); 0 0 0
1315 0 offset += p->cluster_id.len;
1316 }
1317 0 *decoded = p;
1318 0 return 0;
1319 }
1320 0 case 70: {
1321 0 amqp_file_properties_t *p = (amqp_file_properties_t *) amqp_pool_alloc(pool, sizeof(amqp_file_properties_t));
1322 0 p->_flags = flags;
1323 0 ▶ if (flags & AMQP_FILE_CONTENT_TYPE_FLAG) {
Branch: 1 branch
BranchTrueFalseTotal
if (flags & AMQP_FILE_CONTENT_TYPE_FLAG) { 0 0 0
1324 0 ▶ p->content_type.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
p->content_type.len = D_8(encoded, offset); 0 0 0
1325 0 offset++;
1326 0 ▶ p->content_type.bytes = D_BYTES(encoded, offset, p->content_type.len);
Branch: 1 branch
BranchTrueFalseTotal
p->content_type.bytes = D_BYTES(encoded, offset, p->content_type.len); 0 0 0
1327 0 offset += p->content_type.len;
1328 }
1329 0 ▶ if (flags & AMQP_FILE_CONTENT_ENCODING_FLAG) {
Branch: 1 branch
BranchTrueFalseTotal
if (flags & AMQP_FILE_CONTENT_ENCODING_FLAG) { 0 0 0
1330 0 ▶ p->content_encoding.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
p->content_encoding.len = D_8(encoded, offset); 0 0 0
1331 0 offset++;
1332 0 ▶ p->content_encoding.bytes = D_BYTES(encoded, offset, p->content_encoding.len);
Branch: 1 branch
BranchTrueFalseTotal
p->content_encoding.bytes = D_BYTES(encoded, offset, p->content_encoding.len); 0 0 0
1333 0 offset += p->content_encoding.len;
1334 }
1335 0 ▶ if (flags & AMQP_FILE_HEADERS_FLAG) {
Branch: 1 branch
BranchTrueFalseTotal
if (flags & AMQP_FILE_HEADERS_FLAG) { 0 0 0
1336 0 table_result = amqp_decode_table(encoded, pool, &(p->headers), &offset);
1337 0 ▶ AMQP_CHECK_RESULT(table_result);
Branch: 1 branch
BranchTrueFalseTotal
AMQP_CHECK_RESULT(table_result); 0 0 0
1338 }
1339 0 ▶ if (flags & AMQP_FILE_PRIORITY_FLAG) {
Branch: 1 branch
BranchTrueFalseTotal
if (flags & AMQP_FILE_PRIORITY_FLAG) { 0 0 0
1340 0 ▶ p->priority = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
p->priority = D_8(encoded, offset); 0 0 0
1341 0 offset++;
1342 }
1343 0 ▶ if (flags & AMQP_FILE_REPLY_TO_FLAG) {
Branch: 1 branch
BranchTrueFalseTotal
if (flags & AMQP_FILE_REPLY_TO_FLAG) { 0 0 0
1344 0 ▶ p->reply_to.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
p->reply_to.len = D_8(encoded, offset); 0 0 0
1345 0 offset++;
1346 0 ▶ p->reply_to.bytes = D_BYTES(encoded, offset, p->reply_to.len);
Branch: 1 branch
BranchTrueFalseTotal
p->reply_to.bytes = D_BYTES(encoded, offset, p->reply_to.len); 0 0 0
1347 0 offset += p->reply_to.len;
1348 }
1349 0 ▶ if (flags & AMQP_FILE_MESSAGE_ID_FLAG) {
Branch: 1 branch
BranchTrueFalseTotal
if (flags & AMQP_FILE_MESSAGE_ID_FLAG) { 0 0 0
1350 0 ▶ p->message_id.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
p->message_id.len = D_8(encoded, offset); 0 0 0
1351 0 offset++;
1352 0 ▶ p->message_id.bytes = D_BYTES(encoded, offset, p->message_id.len);
Branch: 1 branch
BranchTrueFalseTotal
p->message_id.bytes = D_BYTES(encoded, offset, p->message_id.len); 0 0 0
1353 0 offset += p->message_id.len;
1354 }
1355 0 ▶ if (flags & AMQP_FILE_FILENAME_FLAG) {
Branch: 1 branch
BranchTrueFalseTotal
if (flags & AMQP_FILE_FILENAME_FLAG) { 0 0 0
1356 0 ▶ p->filename.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
p->filename.len = D_8(encoded, offset); 0 0 0
1357 0 offset++;
1358 0 ▶ p->filename.bytes = D_BYTES(encoded, offset, p->filename.len);
Branch: 1 branch
BranchTrueFalseTotal
p->filename.bytes = D_BYTES(encoded, offset, p->filename.len); 0 0 0
1359 0 offset += p->filename.len;
1360 }
1361 0 ▶ if (flags & AMQP_FILE_TIMESTAMP_FLAG) {
Branch: 1 branch
BranchTrueFalseTotal
if (flags & AMQP_FILE_TIMESTAMP_FLAG) { 0 0 0
1362 0 ▶ p->timestamp = D_64(encoded, offset);
Branch: 2 branches
BranchTrueFalseTotal
p->timestamp = D_64(encoded, offset); 0 0 0
p->timestamp = D_64(encoded, offset); 0 0 0
1363 0 offset += 8;
1364 }
1365 0 ▶ if (flags & AMQP_FILE_CLUSTER_ID_FLAG) {
Branch: 1 branch
BranchTrueFalseTotal
if (flags & AMQP_FILE_CLUSTER_ID_FLAG) { 0 0 0
1366 0 ▶ p->cluster_id.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
p->cluster_id.len = D_8(encoded, offset); 0 0 0
1367 0 offset++;
1368 0 ▶ p->cluster_id.bytes = D_BYTES(encoded, offset, p->cluster_id.len);
Branch: 1 branch
BranchTrueFalseTotal
p->cluster_id.bytes = D_BYTES(encoded, offset, p->cluster_id.len); 0 0 0
1369 0 offset += p->cluster_id.len;
1370 }
1371 0 *decoded = p;
1372 0 return 0;
1373 }
1374 0 case 80: {
1375 0 amqp_stream_properties_t *p = (amqp_stream_properties_t *) amqp_pool_alloc(pool, sizeof(amqp_stream_properties_t));
1376 0 p->_flags = flags;
1377 0 ▶ if (flags & AMQP_STREAM_CONTENT_TYPE_FLAG) {
Branch: 1 branch
BranchTrueFalseTotal
if (flags & AMQP_STREAM_CONTENT_TYPE_FLAG) { 0 0 0
1378 0 ▶ p->content_type.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
p->content_type.len = D_8(encoded, offset); 0 0 0
1379 0 offset++;
1380 0 ▶ p->content_type.bytes = D_BYTES(encoded, offset, p->content_type.len);
Branch: 1 branch
BranchTrueFalseTotal
p->content_type.bytes = D_BYTES(encoded, offset, p->content_type.len); 0 0 0
1381 0 offset += p->content_type.len;
1382 }
1383 0 ▶ if (flags & AMQP_STREAM_CONTENT_ENCODING_FLAG) {
Branch: 1 branch
BranchTrueFalseTotal
if (flags & AMQP_STREAM_CONTENT_ENCODING_FLAG) { 0 0 0
1384 0 ▶ p->content_encoding.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
p->content_encoding.len = D_8(encoded, offset); 0 0 0
1385 0 offset++;
1386 0 ▶ p->content_encoding.bytes = D_BYTES(encoded, offset, p->content_encoding.len);
Branch: 1 branch
BranchTrueFalseTotal
p->content_encoding.bytes = D_BYTES(encoded, offset, p->content_encoding.len); 0 0 0
1387 0 offset += p->content_encoding.len;
1388 }
1389 0 ▶ if (flags & AMQP_STREAM_HEADERS_FLAG) {
Branch: 1 branch
BranchTrueFalseTotal
if (flags & AMQP_STREAM_HEADERS_FLAG) { 0 0 0
1390 0 table_result = amqp_decode_table(encoded, pool, &(p->headers), &offset);
1391 0 ▶ AMQP_CHECK_RESULT(table_result);
Branch: 1 branch
BranchTrueFalseTotal
AMQP_CHECK_RESULT(table_result); 0 0 0
1392 }
1393 0 ▶ if (flags & AMQP_STREAM_PRIORITY_FLAG) {
Branch: 1 branch
BranchTrueFalseTotal
if (flags & AMQP_STREAM_PRIORITY_FLAG) { 0 0 0
1394 0 ▶ p->priority = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
p->priority = D_8(encoded, offset); 0 0 0
1395 0 offset++;
1396 }
1397 0 ▶ if (flags & AMQP_STREAM_TIMESTAMP_FLAG) {
Branch: 1 branch
BranchTrueFalseTotal
if (flags & AMQP_STREAM_TIMESTAMP_FLAG) { 0 0 0
1398 0 ▶ p->timestamp = D_64(encoded, offset);
Branch: 2 branches
BranchTrueFalseTotal
p->timestamp = D_64(encoded, offset); 0 0 0
p->timestamp = D_64(encoded, offset); 0 0 0
1399 0 offset += 8;
1400 }
1401 0 *decoded = p;
1402 0 return 0;
1403 }
1404 0 case 90: {
1405 0 amqp_tx_properties_t *p = (amqp_tx_properties_t *) amqp_pool_alloc(pool, sizeof(amqp_tx_properties_t));
1406 0 p->_flags = flags;
1407 0 *decoded = p;
1408 0 return 0;
1409 }
1410 0 case 100: {
1411 0 amqp_dtx_properties_t *p = (amqp_dtx_properties_t *) amqp_pool_alloc(pool, sizeof(amqp_dtx_properties_t));
1412 0 p->_flags = flags;
1413 0 *decoded = p;
1414 0 return 0;
1415 }
1416 0 case 110: {
1417 0 amqp_tunnel_properties_t *p = (amqp_tunnel_properties_t *) amqp_pool_alloc(pool, sizeof(amqp_tunnel_properties_t));
1418 0 p->_flags = flags;
1419 0 ▶ if (flags & AMQP_TUNNEL_HEADERS_FLAG) {
Branch: 1 branch
BranchTrueFalseTotal
if (flags & AMQP_TUNNEL_HEADERS_FLAG) { 0 0 0
1420 0 table_result = amqp_decode_table(encoded, pool, &(p->headers), &offset);
1421 0 ▶ AMQP_CHECK_RESULT(table_result);
Branch: 1 branch
BranchTrueFalseTotal
AMQP_CHECK_RESULT(table_result); 0 0 0
1422 }
1423 0 ▶ if (flags & AMQP_TUNNEL_PROXY_NAME_FLAG) {
Branch: 1 branch
BranchTrueFalseTotal
if (flags & AMQP_TUNNEL_PROXY_NAME_FLAG) { 0 0 0
1424 0 ▶ p->proxy_name.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
p->proxy_name.len = D_8(encoded, offset); 0 0 0
1425 0 offset++;
1426 0 ▶ p->proxy_name.bytes = D_BYTES(encoded, offset, p->proxy_name.len);
Branch: 1 branch
BranchTrueFalseTotal
p->proxy_name.bytes = D_BYTES(encoded, offset, p->proxy_name.len); 0 0 0
1427 0 offset += p->proxy_name.len;
1428 }
1429 0 ▶ if (flags & AMQP_TUNNEL_DATA_NAME_FLAG) {
Branch: 1 branch
BranchTrueFalseTotal
if (flags & AMQP_TUNNEL_DATA_NAME_FLAG) { 0 0 0
1430 0 ▶ p->data_name.len = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
p->data_name.len = D_8(encoded, offset); 0 0 0
1431 0 offset++;
1432 0 ▶ p->data_name.bytes = D_BYTES(encoded, offset, p->data_name.len);
Branch: 1 branch
BranchTrueFalseTotal
p->data_name.bytes = D_BYTES(encoded, offset, p->data_name.len); 0 0 0
1433 0 offset += p->data_name.len;
1434 }
1435 0 ▶ if (flags & AMQP_TUNNEL_DURABLE_FLAG) {
Branch: 1 branch
BranchTrueFalseTotal
if (flags & AMQP_TUNNEL_DURABLE_FLAG) { 0 0 0
1436 0 ▶ p->durable = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
p->durable = D_8(encoded, offset); 0 0 0
1437 0 offset++;
1438 }
1439 0 ▶ if (flags & AMQP_TUNNEL_BROADCAST_FLAG) {
Branch: 1 branch
BranchTrueFalseTotal
if (flags & AMQP_TUNNEL_BROADCAST_FLAG) { 0 0 0
1440 0 ▶ p->broadcast = D_8(encoded, offset);
Branch: 1 branch
BranchTrueFalseTotal
p->broadcast = D_8(encoded, offset); 0 0 0
1441 0 offset++;
1442 }
1443 0 *decoded = p;
1444 0 return 0;
1445 }
1446 0 case 120: {
1447 0 amqp_test_properties_t *p = (amqp_test_properties_t *) amqp_pool_alloc(pool, sizeof(amqp_test_properties_t));
1448 0 p->_flags = flags;
1449 0 *decoded = p;
1450 0 return 0;
1451 }
1452 0 default: return -ENOENT;
1453 }
1454 }
1455  
1456 91 int amqp_encode_method(amqp_method_number_t methodNumber,
1457 void *decoded,
1458 amqp_bytes_t encoded)
1459 {
1460 91 int offset = 0;
1461 int table_result;
1462 uint8_t bit_buffer;
1463  
1464 91 switch (methodNumber) {
1465 0 case AMQP_CONNECTION_START_METHOD: {
1466 0 amqp_connection_start_t *m = (amqp_connection_start_t *) decoded;
1467 0 ▶ E_8(encoded, offset, m->version_major);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->version_major); 0 0 0
1468 0 offset++;
1469 0 ▶ E_8(encoded, offset, m->version_minor);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->version_minor); 0 0 0
1470 0 offset++;
1471 0 table_result = amqp_encode_table(encoded, &(m->server_properties), &offset);
1472 0 ▶ if (table_result < 0) return table_result;
Branch: 1 branch
BranchTrueFalseTotal
if (table_result < 0) return table_result; 0 0 0
1473 0 ▶ E_32(encoded, offset, m->mechanisms.len);
Branch: 1 branch
BranchTrueFalseTotal
E_32(encoded, offset, m->mechanisms.len); 0 0 0
1474 0 offset += 4;
1475 0 ▶ E_BYTES(encoded, offset, m->mechanisms.len, m->mechanisms.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->mechanisms.len, m->mechanisms.bytes); 0 0 0
1476 0 offset += m->mechanisms.len;
1477 0 ▶ E_32(encoded, offset, m->locales.len);
Branch: 1 branch
BranchTrueFalseTotal
E_32(encoded, offset, m->locales.len); 0 0 0
1478 0 offset += 4;
1479 0 ▶ E_BYTES(encoded, offset, m->locales.len, m->locales.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->locales.len, m->locales.bytes); 0 0 0
1480 0 offset += m->locales.len;
1481 0 return offset;
1482 }
1483 0 case AMQP_CONNECTION_START_OK_METHOD: {
1484 0 amqp_connection_start_ok_t *m = (amqp_connection_start_ok_t *) decoded;
1485 0 table_result = amqp_encode_table(encoded, &(m->client_properties), &offset);
1486 0 ▶ if (table_result < 0) return table_result;
Branch: 1 branch
BranchTrueFalseTotal
if (table_result < 0) return table_result; 0 0 0
1487 0 ▶ E_8(encoded, offset, m->mechanism.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->mechanism.len); 0 0 0
1488 0 offset++;
1489 0 ▶ E_BYTES(encoded, offset, m->mechanism.len, m->mechanism.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->mechanism.len, m->mechanism.bytes); 0 0 0
1490 0 offset += m->mechanism.len;
1491 0 ▶ E_32(encoded, offset, m->response.len);
Branch: 1 branch
BranchTrueFalseTotal
E_32(encoded, offset, m->response.len); 0 0 0
1492 0 offset += 4;
1493 0 ▶ E_BYTES(encoded, offset, m->response.len, m->response.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->response.len, m->response.bytes); 0 0 0
1494 0 offset += m->response.len;
1495 0 ▶ E_8(encoded, offset, m->locale.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->locale.len); 0 0 0
1496 0 offset++;
1497 0 ▶ E_BYTES(encoded, offset, m->locale.len, m->locale.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->locale.len, m->locale.bytes); 0 0 0
1498 0 offset += m->locale.len;
1499 0 return offset;
1500 }
1501 0 case AMQP_CONNECTION_SECURE_METHOD: {
1502 0 amqp_connection_secure_t *m = (amqp_connection_secure_t *) decoded;
1503 0 ▶ E_32(encoded, offset, m->challenge.len);
Branch: 1 branch
BranchTrueFalseTotal
E_32(encoded, offset, m->challenge.len); 0 0 0
1504 0 offset += 4;
1505 0 ▶ E_BYTES(encoded, offset, m->challenge.len, m->challenge.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->challenge.len, m->challenge.bytes); 0 0 0
1506 0 offset += m->challenge.len;
1507 0 return offset;
1508 }
1509 0 case AMQP_CONNECTION_SECURE_OK_METHOD: {
1510 0 amqp_connection_secure_ok_t *m = (amqp_connection_secure_ok_t *) decoded;
1511 0 ▶ E_32(encoded, offset, m->response.len);
Branch: 1 branch
BranchTrueFalseTotal
E_32(encoded, offset, m->response.len); 0 0 0
1512 0 offset += 4;
1513 0 ▶ E_BYTES(encoded, offset, m->response.len, m->response.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->response.len, m->response.bytes); 0 0 0
1514 0 offset += m->response.len;
1515 0 return offset;
1516 }
1517 0 case AMQP_CONNECTION_TUNE_METHOD: {
1518 0 amqp_connection_tune_t *m = (amqp_connection_tune_t *) decoded;
1519 0 ▶ E_16(encoded, offset, m->channel_max);
Branch: 1 branch
BranchTrueFalseTotal
E_16(encoded, offset, m->channel_max); 0 0 0
1520 0 offset += 2;
1521 0 ▶ E_32(encoded, offset, m->frame_max);
Branch: 1 branch
BranchTrueFalseTotal
E_32(encoded, offset, m->frame_max); 0 0 0
1522 0 offset += 4;
1523 0 ▶ E_16(encoded, offset, m->heartbeat);
Branch: 1 branch
BranchTrueFalseTotal
E_16(encoded, offset, m->heartbeat); 0 0 0
1524 0 offset += 2;
1525 0 return offset;
1526 }
1527 0 case AMQP_CONNECTION_TUNE_OK_METHOD: {
1528 0 amqp_connection_tune_ok_t *m = (amqp_connection_tune_ok_t *) decoded;
1529 0 ▶ E_16(encoded, offset, m->channel_max);
Branch: 1 branch
BranchTrueFalseTotal
E_16(encoded, offset, m->channel_max); 0 0 0
1530 0 offset += 2;
1531 0 ▶ E_32(encoded, offset, m->frame_max);
Branch: 1 branch
BranchTrueFalseTotal
E_32(encoded, offset, m->frame_max); 0 0 0
1532 0 offset += 4;
1533 0 ▶ E_16(encoded, offset, m->heartbeat);
Branch: 1 branch
BranchTrueFalseTotal
E_16(encoded, offset, m->heartbeat); 0 0 0
1534 0 offset += 2;
1535 0 return offset;
1536 }
1537 0 case AMQP_CONNECTION_OPEN_METHOD: {
1538 0 amqp_connection_open_t *m = (amqp_connection_open_t *) decoded;
1539 0 ▶ E_8(encoded, offset, m->virtual_host.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->virtual_host.len); 0 0 0
1540 0 offset++;
1541 0 ▶ E_BYTES(encoded, offset, m->virtual_host.len, m->virtual_host.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->virtual_host.len, m->virtual_host.bytes); 0 0 0
1542 0 offset += m->virtual_host.len;
1543 0 ▶ E_8(encoded, offset, m->capabilities.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->capabilities.len); 0 0 0
1544 0 offset++;
1545 0 ▶ E_BYTES(encoded, offset, m->capabilities.len, m->capabilities.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->capabilities.len, m->capabilities.bytes); 0 0 0
1546 0 offset += m->capabilities.len;
1547 0 bit_buffer = 0;
1548 0 ▶ if (m->insist) { bit_buffer |= (1 << 0); }
Branch: 1 branch
BranchTrueFalseTotal
if (m->insist) { bit_buffer |= (1 << 0); } 0 0 0
1549 0 ▶ E_8(encoded, offset, bit_buffer);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, bit_buffer); 0 0 0
1550 0 offset++;
1551 0 return offset;
1552 }
1553 0 case AMQP_CONNECTION_OPEN_OK_METHOD: {
1554 0 amqp_connection_open_ok_t *m = (amqp_connection_open_ok_t *) decoded;
1555 0 ▶ E_8(encoded, offset, m->known_hosts.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->known_hosts.len); 0 0 0
1556 0 offset++;
1557 0 ▶ E_BYTES(encoded, offset, m->known_hosts.len, m->known_hosts.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->known_hosts.len, m->known_hosts.bytes); 0 0 0
1558 0 offset += m->known_hosts.len;
1559 0 return offset;
1560 }
1561 0 case AMQP_CONNECTION_REDIRECT_METHOD: {
1562 0 amqp_connection_redirect_t *m = (amqp_connection_redirect_t *) decoded;
1563 0 ▶ E_8(encoded, offset, m->host.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->host.len); 0 0 0
1564 0 offset++;
1565 0 ▶ E_BYTES(encoded, offset, m->host.len, m->host.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->host.len, m->host.bytes); 0 0 0
1566 0 offset += m->host.len;
1567 0 ▶ E_8(encoded, offset, m->known_hosts.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->known_hosts.len); 0 0 0
1568 0 offset++;
1569 0 ▶ E_BYTES(encoded, offset, m->known_hosts.len, m->known_hosts.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->known_hosts.len, m->known_hosts.bytes); 0 0 0
1570 0 offset += m->known_hosts.len;
1571 0 return offset;
1572 }
1573 18 case AMQP_CONNECTION_CLOSE_METHOD: {
1574 18 amqp_connection_close_t *m = (amqp_connection_close_t *) decoded;
1575 18 ▶ E_16(encoded, offset, m->reply_code);
Branch: 1 branch
BranchTrueFalseTotal
E_16(encoded, offset, m->reply_code); 0 18 18
1576 18 offset += 2;
1577 18 ▶ E_8(encoded, offset, m->reply_text.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->reply_text.len); 0 18 18
1578 18 offset++;
1579 18 ▶ E_BYTES(encoded, offset, m->reply_text.len, m->reply_text.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->reply_text.len, m->reply_text.bytes); 0 18 18
1580 18 offset += m->reply_text.len;
1581 18 ▶ E_16(encoded, offset, m->class_id);
Branch: 1 branch
BranchTrueFalseTotal
E_16(encoded, offset, m->class_id); 0 18 18
1582 18 offset += 2;
1583 18 ▶ E_16(encoded, offset, m->method_id);
Branch: 1 branch
BranchTrueFalseTotal
E_16(encoded, offset, m->method_id); 0 18 18
1584 18 offset += 2;
1585 18 return offset;
1586 }
1587 0 case AMQP_CONNECTION_CLOSE_OK_METHOD: {
1588 0 return offset;
1589 }
1590 16 case AMQP_CHANNEL_OPEN_METHOD: {
1591 16 amqp_channel_open_t *m = (amqp_channel_open_t *) decoded;
1592 16 ▶ E_8(encoded, offset, m->out_of_band.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->out_of_band.len); 0 16 16
1593 16 offset++;
1594 16 ▶ E_BYTES(encoded, offset, m->out_of_band.len, m->out_of_band.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->out_of_band.len, m->out_of_band.bytes); 0 16 16
1595 16 offset += m->out_of_band.len;
1596 16 return offset;
1597 }
1598 0 case AMQP_CHANNEL_OPEN_OK_METHOD: {
1599 0 return offset;
1600 }
1601 0 case AMQP_CHANNEL_FLOW_METHOD: {
1602 0 amqp_channel_flow_t *m = (amqp_channel_flow_t *) decoded;
1603 0 bit_buffer = 0;
1604 0 ▶ if (m->active) { bit_buffer |= (1 << 0); }
Branch: 1 branch
BranchTrueFalseTotal
if (m->active) { bit_buffer |= (1 << 0); } 0 0 0
1605 0 ▶ E_8(encoded, offset, bit_buffer);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, bit_buffer); 0 0 0
1606 0 offset++;
1607 0 return offset;
1608 }
1609 0 case AMQP_CHANNEL_FLOW_OK_METHOD: {
1610 0 amqp_channel_flow_ok_t *m = (amqp_channel_flow_ok_t *) decoded;
1611 0 bit_buffer = 0;
1612 0 ▶ if (m->active) { bit_buffer |= (1 << 0); }
Branch: 1 branch
BranchTrueFalseTotal
if (m->active) { bit_buffer |= (1 << 0); } 0 0 0
1613 0 ▶ E_8(encoded, offset, bit_buffer);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, bit_buffer); 0 0 0
1614 0 offset++;
1615 0 return offset;
1616 }
1617 0 case AMQP_CHANNEL_ALERT_METHOD: {
1618 0 amqp_channel_alert_t *m = (amqp_channel_alert_t *) decoded;
1619 0 ▶ E_16(encoded, offset, m->reply_code);
Branch: 1 branch
BranchTrueFalseTotal
E_16(encoded, offset, m->reply_code); 0 0 0
1620 0 offset += 2;
1621 0 ▶ E_8(encoded, offset, m->reply_text.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->reply_text.len); 0 0 0
1622 0 offset++;
1623 0 ▶ E_BYTES(encoded, offset, m->reply_text.len, m->reply_text.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->reply_text.len, m->reply_text.bytes); 0 0 0
1624 0 offset += m->reply_text.len;
1625 0 table_result = amqp_encode_table(encoded, &(m->details), &offset);
1626 0 ▶ if (table_result < 0) return table_result;
Branch: 1 branch
BranchTrueFalseTotal
if (table_result < 0) return table_result; 0 0 0
1627 0 return offset;
1628 }
1629 0 case AMQP_CHANNEL_CLOSE_METHOD: {
1630 0 amqp_channel_close_t *m = (amqp_channel_close_t *) decoded;
1631 0 ▶ E_16(encoded, offset, m->reply_code);
Branch: 1 branch
BranchTrueFalseTotal
E_16(encoded, offset, m->reply_code); 0 0 0
1632 0 offset += 2;
1633 0 ▶ E_8(encoded, offset, m->reply_text.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->reply_text.len); 0 0 0
1634 0 offset++;
1635 0 ▶ E_BYTES(encoded, offset, m->reply_text.len, m->reply_text.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->reply_text.len, m->reply_text.bytes); 0 0 0
1636 0 offset += m->reply_text.len;
1637 0 ▶ E_16(encoded, offset, m->class_id);
Branch: 1 branch
BranchTrueFalseTotal
E_16(encoded, offset, m->class_id); 0 0 0
1638 0 offset += 2;
1639 0 ▶ E_16(encoded, offset, m->method_id);
Branch: 1 branch
BranchTrueFalseTotal
E_16(encoded, offset, m->method_id); 0 0 0
1640 0 offset += 2;
1641 0 return offset;
1642 }
1643 0 case AMQP_CHANNEL_CLOSE_OK_METHOD: {
1644 0 return offset;
1645 }
1646 0 case AMQP_ACCESS_REQUEST_METHOD: {
1647 0 amqp_access_request_t *m = (amqp_access_request_t *) decoded;
1648 0 ▶ E_8(encoded, offset, m->realm.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->realm.len); 0 0 0
1649 0 offset++;
1650 0 ▶ E_BYTES(encoded, offset, m->realm.len, m->realm.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->realm.len, m->realm.bytes); 0 0 0
1651 0 offset += m->realm.len;
1652 0 bit_buffer = 0;
1653 0 ▶ if (m->exclusive) { bit_buffer |= (1 << 0); }
Branch: 1 branch
BranchTrueFalseTotal
if (m->exclusive) { bit_buffer |= (1 << 0); } 0 0 0
1654 0 ▶ if (m->passive) { bit_buffer |= (1 << 1); }
Branch: 1 branch
BranchTrueFalseTotal
if (m->passive) { bit_buffer |= (1 << 1); } 0 0 0
1655 0 ▶ if (m->active) { bit_buffer |= (1 << 2); }
Branch: 1 branch
BranchTrueFalseTotal
if (m->active) { bit_buffer |= (1 << 2); } 0 0 0
1656 0 ▶ if (m->write) { bit_buffer |= (1 << 3); }
Branch: 1 branch
BranchTrueFalseTotal
if (m->write) { bit_buffer |= (1 << 3); } 0 0 0
1657 0 ▶ if (m->read) { bit_buffer |= (1 << 4); }
Branch: 1 branch
BranchTrueFalseTotal
if (m->read) { bit_buffer |= (1 << 4); } 0 0 0
1658 0 ▶ E_8(encoded, offset, bit_buffer);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, bit_buffer); 0 0 0
1659 0 offset++;
1660 0 return offset;
1661 }
1662 0 case AMQP_ACCESS_REQUEST_OK_METHOD: {
1663 0 amqp_access_request_ok_t *m = (amqp_access_request_ok_t *) decoded;
1664 0 ▶ E_16(encoded, offset, m->ticket);
Branch: 1 branch
BranchTrueFalseTotal
E_16(encoded, offset, m->ticket); 0 0 0
1665 0 offset += 2;
1666 0 return offset;
1667 }
1668 2 case AMQP_EXCHANGE_DECLARE_METHOD: {
1669 2 amqp_exchange_declare_t *m = (amqp_exchange_declare_t *) decoded;
1670 2 ▶ E_16(encoded, offset, m->ticket);
Branch: 1 branch
BranchTrueFalseTotal
E_16(encoded, offset, m->ticket); 0 2 2
1671 2 offset += 2;
1672 2 ▶ E_8(encoded, offset, m->exchange.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->exchange.len); 0 2 2
1673 2 offset++;
1674 2 ▶ E_BYTES(encoded, offset, m->exchange.len, m->exchange.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->exchange.len, m->exchange.bytes); 0 2 2
1675 2 offset += m->exchange.len;
1676 2 ▶ E_8(encoded, offset, m->type.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->type.len); 0 2 2
1677 2 offset++;
1678 2 ▶ E_BYTES(encoded, offset, m->type.len, m->type.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->type.len, m->type.bytes); 0 2 2
1679 2 offset += m->type.len;
1680 2 bit_buffer = 0;
1681 2 ▶ if (m->passive) { bit_buffer |= (1 << 0); }
Branch: 1 branch
BranchTrueFalseTotal
if (m->passive) { bit_buffer |= (1 << 0); } 0 2 2
1682 2 ▶ if (m->durable) { bit_buffer |= (1 << 1); }
Branch: 1 branch
BranchTrueFalseTotal
if (m->durable) { bit_buffer |= (1 << 1); } 1 1 2
1683 2 ▶ if (m->auto_delete) { bit_buffer |= (1 << 2); }
Branch: 1 branch
BranchTrueFalseTotal
if (m->auto_delete) { bit_buffer |= (1 << 2); } 1 1 2
1684 2 ▶ if (m->internal) { bit_buffer |= (1 << 3); }
Branch: 1 branch
BranchTrueFalseTotal
if (m->internal) { bit_buffer |= (1 << 3); } 0 2 2
1685 2 ▶ if (m->nowait) { bit_buffer |= (1 << 4); }
Branch: 1 branch
BranchTrueFalseTotal
if (m->nowait) { bit_buffer |= (1 << 4); } 0 2 2
1686 2 ▶ E_8(encoded, offset, bit_buffer);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, bit_buffer); 0 2 2
1687 2 offset++;
1688 2 table_result = amqp_encode_table(encoded, &(m->arguments), &offset);
1689 2 ▶ if (table_result < 0) return table_result;
Branch: 1 branch
BranchTrueFalseTotal
if (table_result < 0) return table_result; 0 2 2
1690 2 return offset;
1691 }
1692 0 case AMQP_EXCHANGE_DECLARE_OK_METHOD: {
1693 0 return offset;
1694 }
1695 0 case AMQP_EXCHANGE_DELETE_METHOD: {
1696 0 amqp_exchange_delete_t *m = (amqp_exchange_delete_t *) decoded;
1697 0 ▶ E_16(encoded, offset, m->ticket);
Branch: 1 branch
BranchTrueFalseTotal
E_16(encoded, offset, m->ticket); 0 0 0
1698 0 offset += 2;
1699 0 ▶ E_8(encoded, offset, m->exchange.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->exchange.len); 0 0 0
1700 0 offset++;
1701 0 ▶ E_BYTES(encoded, offset, m->exchange.len, m->exchange.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->exchange.len, m->exchange.bytes); 0 0 0
1702 0 offset += m->exchange.len;
1703 0 bit_buffer = 0;
1704 0 ▶ if (m->if_unused) { bit_buffer |= (1 << 0); }
Branch: 1 branch
BranchTrueFalseTotal
if (m->if_unused) { bit_buffer |= (1 << 0); } 0 0 0
1705 0 ▶ if (m->nowait) { bit_buffer |= (1 << 1); }
Branch: 1 branch
BranchTrueFalseTotal
if (m->nowait) { bit_buffer |= (1 << 1); } 0 0 0
1706 0 ▶ E_8(encoded, offset, bit_buffer);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, bit_buffer); 0 0 0
1707 0 offset++;
1708 0 return offset;
1709 }
1710 0 case AMQP_EXCHANGE_DELETE_OK_METHOD: {
1711 0 return offset;
1712 }
1713 11 case AMQP_QUEUE_DECLARE_METHOD: {
1714 11 amqp_queue_declare_t *m = (amqp_queue_declare_t *) decoded;
1715 11 ▶ E_16(encoded, offset, m->ticket);
Branch: 1 branch
BranchTrueFalseTotal
E_16(encoded, offset, m->ticket); 0 11 11
1716 11 offset += 2;
1717 11 ▶ E_8(encoded, offset, m->queue.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->queue.len); 0 11 11
1718 11 offset++;
1719 11 ▶ E_BYTES(encoded, offset, m->queue.len, m->queue.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->queue.len, m->queue.bytes); 0 11 11
1720 11 offset += m->queue.len;
1721 11 bit_buffer = 0;
1722 11 ▶ if (m->passive) { bit_buffer |= (1 << 0); }
Branch: 1 branch
BranchTrueFalseTotal
if (m->passive) { bit_buffer |= (1 << 0); } 0 11 11
1723 11 ▶ if (m->durable) { bit_buffer |= (1 << 1); }
Branch: 1 branch
BranchTrueFalseTotal
if (m->durable) { bit_buffer |= (1 << 1); } 7 4 11
1724 11 ▶ if (m->exclusive) { bit_buffer |= (1 << 2); }
Branch: 1 branch
BranchTrueFalseTotal
if (m->exclusive) { bit_buffer |= (1 << 2); } 0 11 11
1725 11 ▶ if (m->auto_delete) { bit_buffer |= (1 << 3); }
Branch: 1 branch
BranchTrueFalseTotal
if (m->auto_delete) { bit_buffer |= (1 << 3); } 6 5 11
1726 11 ▶ if (m->nowait) { bit_buffer |= (1 << 4); }
Branch: 1 branch
BranchTrueFalseTotal
if (m->nowait) { bit_buffer |= (1 << 4); } 0 11 11
1727 11 ▶ E_8(encoded, offset, bit_buffer);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, bit_buffer); 0 11 11
1728 11 offset++;
1729 11 table_result = amqp_encode_table(encoded, &(m->arguments), &offset);
1730 11 ▶ if (table_result < 0) return table_result;
Branch: 1 branch
BranchTrueFalseTotal
if (table_result < 0) return table_result; 0 11 11
1731 11 return offset;
1732 }
1733 0 case AMQP_QUEUE_DECLARE_OK_METHOD: {
1734 0 amqp_queue_declare_ok_t *m = (amqp_queue_declare_ok_t *) decoded;
1735 0 ▶ E_8(encoded, offset, m->queue.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->queue.len); 0 0 0
1736 0 offset++;
1737 0 ▶ E_BYTES(encoded, offset, m->queue.len, m->queue.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->queue.len, m->queue.bytes); 0 0 0
1738 0 offset += m->queue.len;
1739 0 ▶ E_32(encoded, offset, m->message_count);
Branch: 1 branch
BranchTrueFalseTotal
E_32(encoded, offset, m->message_count); 0 0 0
1740 0 offset += 4;
1741 0 ▶ E_32(encoded, offset, m->consumer_count);
Branch: 1 branch
BranchTrueFalseTotal
E_32(encoded, offset, m->consumer_count); 0 0 0
1742 0 offset += 4;
1743 0 return offset;
1744 }
1745 8 case AMQP_QUEUE_BIND_METHOD: {
1746 8 amqp_queue_bind_t *m = (amqp_queue_bind_t *) decoded;
1747 8 ▶ E_16(encoded, offset, m->ticket);
Branch: 1 branch
BranchTrueFalseTotal
E_16(encoded, offset, m->ticket); 0 8 8
1748 8 offset += 2;
1749 8 ▶ E_8(encoded, offset, m->queue.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->queue.len); 0 8 8
1750 8 offset++;
1751 8 ▶ E_BYTES(encoded, offset, m->queue.len, m->queue.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->queue.len, m->queue.bytes); 0 8 8
1752 8 offset += m->queue.len;
1753 8 ▶ E_8(encoded, offset, m->exchange.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->exchange.len); 0 8 8
1754 8 offset++;
1755 8 ▶ E_BYTES(encoded, offset, m->exchange.len, m->exchange.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->exchange.len, m->exchange.bytes); 0 8 8
1756 8 offset += m->exchange.len;
1757 8 ▶ E_8(encoded, offset, m->routing_key.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->routing_key.len); 0 8 8
1758 8 offset++;
1759 8 ▶ E_BYTES(encoded, offset, m->routing_key.len, m->routing_key.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->routing_key.len, m->routing_key.bytes); 0 8 8
1760 8 offset += m->routing_key.len;
1761 8 bit_buffer = 0;
1762 8 ▶ if (m->nowait) { bit_buffer |= (1 << 0); }
Branch: 1 branch
BranchTrueFalseTotal
if (m->nowait) { bit_buffer |= (1 << 0); } 0 8 8
1763 8 ▶ E_8(encoded, offset, bit_buffer);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, bit_buffer); 0 8 8
1764 8 offset++;
1765 8 table_result = amqp_encode_table(encoded, &(m->arguments), &offset);
1766 8 ▶ if (table_result < 0) return table_result;
Branch: 1 branch
BranchTrueFalseTotal
if (table_result < 0) return table_result; 0 8 8
1767 8 return offset;
1768 }
1769 0 case AMQP_QUEUE_BIND_OK_METHOD: {
1770 0 return offset;
1771 }
1772 2 case AMQP_QUEUE_PURGE_METHOD: {
1773 2 amqp_queue_purge_t *m = (amqp_queue_purge_t *) decoded;
1774 2 ▶ E_16(encoded, offset, m->ticket);
Branch: 1 branch
BranchTrueFalseTotal
E_16(encoded, offset, m->ticket); 0 2 2
1775 2 offset += 2;
1776 2 ▶ E_8(encoded, offset, m->queue.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->queue.len); 0 2 2
1777 2 offset++;
1778 2 ▶ E_BYTES(encoded, offset, m->queue.len, m->queue.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->queue.len, m->queue.bytes); 0 2 2
1779 2 offset += m->queue.len;
1780 2 bit_buffer = 0;
1781 2 ▶ if (m->nowait) { bit_buffer |= (1 << 0); }
Branch: 1 branch
BranchTrueFalseTotal
if (m->nowait) { bit_buffer |= (1 << 0); } 0 2 2
1782 2 ▶ E_8(encoded, offset, bit_buffer);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, bit_buffer); 0 2 2
1783 2 offset++;
1784 2 return offset;
1785 }
1786 0 case AMQP_QUEUE_PURGE_OK_METHOD: {
1787 0 amqp_queue_purge_ok_t *m = (amqp_queue_purge_ok_t *) decoded;
1788 0 ▶ E_32(encoded, offset, m->message_count);
Branch: 1 branch
BranchTrueFalseTotal
E_32(encoded, offset, m->message_count); 0 0 0
1789 0 offset += 4;
1790 0 return offset;
1791 }
1792 0 case AMQP_QUEUE_DELETE_METHOD: {
1793 0 amqp_queue_delete_t *m = (amqp_queue_delete_t *) decoded;
1794 0 ▶ E_16(encoded, offset, m->ticket);
Branch: 1 branch
BranchTrueFalseTotal
E_16(encoded, offset, m->ticket); 0 0 0
1795 0 offset += 2;
1796 0 ▶ E_8(encoded, offset, m->queue.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->queue.len); 0 0 0
1797 0 offset++;
1798 0 ▶ E_BYTES(encoded, offset, m->queue.len, m->queue.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->queue.len, m->queue.bytes); 0 0 0
1799 0 offset += m->queue.len;
1800 0 bit_buffer = 0;
1801 0 ▶ if (m->if_unused) { bit_buffer |= (1 << 0); }
Branch: 1 branch
BranchTrueFalseTotal
if (m->if_unused) { bit_buffer |= (1 << 0); } 0 0 0
1802 0 ▶ if (m->if_empty) { bit_buffer |= (1 << 1); }
Branch: 1 branch
BranchTrueFalseTotal
if (m->if_empty) { bit_buffer |= (1 << 1); } 0 0 0
1803 0 ▶ if (m->nowait) { bit_buffer |= (1 << 2); }
Branch: 1 branch
BranchTrueFalseTotal
if (m->nowait) { bit_buffer |= (1 << 2); } 0 0 0
1804 0 ▶ E_8(encoded, offset, bit_buffer);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, bit_buffer); 0 0 0
1805 0 offset++;
1806 0 return offset;
1807 }
1808 0 case AMQP_QUEUE_DELETE_OK_METHOD: {
1809 0 amqp_queue_delete_ok_t *m = (amqp_queue_delete_ok_t *) decoded;
1810 0 ▶ E_32(encoded, offset, m->message_count);
Branch: 1 branch
BranchTrueFalseTotal
E_32(encoded, offset, m->message_count); 0 0 0
1811 0 offset += 4;
1812 0 return offset;
1813 }
1814 1 case AMQP_QUEUE_UNBIND_METHOD: {
1815 1 amqp_queue_unbind_t *m = (amqp_queue_unbind_t *) decoded;
1816 1 ▶ E_16(encoded, offset, m->ticket);
Branch: 1 branch
BranchTrueFalseTotal
E_16(encoded, offset, m->ticket); 0 1 1
1817 1 offset += 2;
1818 1 ▶ E_8(encoded, offset, m->queue.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->queue.len); 0 1 1
1819 1 offset++;
1820 1 ▶ E_BYTES(encoded, offset, m->queue.len, m->queue.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->queue.len, m->queue.bytes); 0 1 1
1821 1 offset += m->queue.len;
1822 1 ▶ E_8(encoded, offset, m->exchange.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->exchange.len); 0 1 1
1823 1 offset++;
1824 1 ▶ E_BYTES(encoded, offset, m->exchange.len, m->exchange.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->exchange.len, m->exchange.bytes); 0 1 1
1825 1 offset += m->exchange.len;
1826 1 ▶ E_8(encoded, offset, m->routing_key.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->routing_key.len); 0 1 1
1827 1 offset++;
1828 1 ▶ E_BYTES(encoded, offset, m->routing_key.len, m->routing_key.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->routing_key.len, m->routing_key.bytes); 0 1 1
1829 1 offset += m->routing_key.len;
1830 1 table_result = amqp_encode_table(encoded, &(m->arguments), &offset);
1831 1 ▶ if (table_result < 0) return table_result;
Branch: 1 branch
BranchTrueFalseTotal
if (table_result < 0) return table_result; 0 1 1
1832 1 return offset;
1833 }
1834 0 case AMQP_QUEUE_UNBIND_OK_METHOD: {
1835 0 return offset;
1836 }
1837 1 case AMQP_BASIC_QOS_METHOD: {
1838 1 amqp_basic_qos_t *m = (amqp_basic_qos_t *) decoded;
1839 1 ▶ E_32(encoded, offset, m->prefetch_size);
Branch: 1 branch
BranchTrueFalseTotal
E_32(encoded, offset, m->prefetch_size); 0 1 1
1840 1 offset += 4;
1841 1 ▶ E_16(encoded, offset, m->prefetch_count);
Branch: 1 branch
BranchTrueFalseTotal
E_16(encoded, offset, m->prefetch_count); 0 1 1
1842 1 offset += 2;
1843 1 bit_buffer = 0;
1844 1 ▶ if (m->global) { bit_buffer |= (1 << 0); }
Branch: 1 branch
BranchTrueFalseTotal
if (m->global) { bit_buffer |= (1 << 0); } 0 1 1
1845 1 ▶ E_8(encoded, offset, bit_buffer);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, bit_buffer); 0 1 1
1846 1 offset++;
1847 1 return offset;
1848 }
1849 0 case AMQP_BASIC_QOS_OK_METHOD: {
1850 0 return offset;
1851 }
1852 9 case AMQP_BASIC_CONSUME_METHOD: {
1853 9 amqp_basic_consume_t *m = (amqp_basic_consume_t *) decoded;
1854 9 ▶ E_16(encoded, offset, m->ticket);
Branch: 1 branch
BranchTrueFalseTotal
E_16(encoded, offset, m->ticket); 0 9 9
1855 9 offset += 2;
1856 9 ▶ E_8(encoded, offset, m->queue.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->queue.len); 0 9 9
1857 9 offset++;
1858 9 ▶ E_BYTES(encoded, offset, m->queue.len, m->queue.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->queue.len, m->queue.bytes); 0 9 9
1859 9 offset += m->queue.len;
1860 9 ▶ E_8(encoded, offset, m->consumer_tag.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->consumer_tag.len); 0 9 9
1861 9 offset++;
1862 9 ▶ E_BYTES(encoded, offset, m->consumer_tag.len, m->consumer_tag.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->consumer_tag.len, m->consumer_tag.bytes); 0 9 9
1863 9 offset += m->consumer_tag.len;
1864 9 bit_buffer = 0;
1865 9 ▶ if (m->no_local) { bit_buffer |= (1 << 0); }
Branch: 1 branch
BranchTrueFalseTotal
if (m->no_local) { bit_buffer |= (1 << 0); } 0 9 9
1866 9 ▶ if (m->no_ack) { bit_buffer |= (1 << 1); }
Branch: 1 branch
BranchTrueFalseTotal
if (m->no_ack) { bit_buffer |= (1 << 1); } 5 4 9
1867 9 ▶ if (m->exclusive) { bit_buffer |= (1 << 2); }
Branch: 1 branch
BranchTrueFalseTotal
if (m->exclusive) { bit_buffer |= (1 << 2); } 0 9 9
1868 9 ▶ if (m->nowait) { bit_buffer |= (1 << 3); }
Branch: 1 branch
BranchTrueFalseTotal
if (m->nowait) { bit_buffer |= (1 << 3); } 0 9 9
1869 9 ▶ E_8(encoded, offset, bit_buffer);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, bit_buffer); 0 9 9
1870 9 offset++;
1871 9 return offset;
1872 }
1873 0 case AMQP_BASIC_CONSUME_OK_METHOD: {
1874 0 amqp_basic_consume_ok_t *m = (amqp_basic_consume_ok_t *) decoded;
1875 0 ▶ E_8(encoded, offset, m->consumer_tag.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->consumer_tag.len); 0 0 0
1876 0 offset++;
1877 0 ▶ E_BYTES(encoded, offset, m->consumer_tag.len, m->consumer_tag.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->consumer_tag.len, m->consumer_tag.bytes); 0 0 0
1878 0 offset += m->consumer_tag.len;
1879 0 return offset;
1880 }
1881 0 case AMQP_BASIC_CANCEL_METHOD: {
1882 0 amqp_basic_cancel_t *m = (amqp_basic_cancel_t *) decoded;
1883 0 ▶ E_8(encoded, offset, m->consumer_tag.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->consumer_tag.len); 0 0 0
1884 0 offset++;
1885 0 ▶ E_BYTES(encoded, offset, m->consumer_tag.len, m->consumer_tag.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->consumer_tag.len, m->consumer_tag.bytes); 0 0 0
1886 0 offset += m->consumer_tag.len;
1887 0 bit_buffer = 0;
1888 0 ▶ if (m->nowait) { bit_buffer |= (1 << 0); }
Branch: 1 branch
BranchTrueFalseTotal
if (m->nowait) { bit_buffer |= (1 << 0); } 0 0 0
1889 0 ▶ E_8(encoded, offset, bit_buffer);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, bit_buffer); 0 0 0
1890 0 offset++;
1891 0 return offset;
1892 }
1893 0 case AMQP_BASIC_CANCEL_OK_METHOD: {
1894 0 amqp_basic_cancel_ok_t *m = (amqp_basic_cancel_ok_t *) decoded;
1895 0 ▶ E_8(encoded, offset, m->consumer_tag.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->consumer_tag.len); 0 0 0
1896 0 offset++;
1897 0 ▶ E_BYTES(encoded, offset, m->consumer_tag.len, m->consumer_tag.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->consumer_tag.len, m->consumer_tag.bytes); 0 0 0
1898 0 offset += m->consumer_tag.len;
1899 0 return offset;
1900 }
1901 15 case AMQP_BASIC_PUBLISH_METHOD: {
1902 15 amqp_basic_publish_t *m = (amqp_basic_publish_t *) decoded;
1903 15 ▶ E_16(encoded, offset, m->ticket);
Branch: 1 branch
BranchTrueFalseTotal
E_16(encoded, offset, m->ticket); 0 15 15
1904 15 offset += 2;
1905 15 ▶ E_8(encoded, offset, m->exchange.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->exchange.len); 0 15 15
1906 15 offset++;
1907 15 ▶ E_BYTES(encoded, offset, m->exchange.len, m->exchange.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->exchange.len, m->exchange.bytes); 0 15 15
1908 15 offset += m->exchange.len;
1909 15 ▶ E_8(encoded, offset, m->routing_key.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->routing_key.len); 0 15 15
1910 15 offset++;
1911 15 ▶ E_BYTES(encoded, offset, m->routing_key.len, m->routing_key.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->routing_key.len, m->routing_key.bytes); 0 15 15
1912 15 offset += m->routing_key.len;
1913 15 bit_buffer = 0;
1914 15 ▶ if (m->mandatory) { bit_buffer |= (1 << 0); }
Branch: 1 branch
BranchTrueFalseTotal
if (m->mandatory) { bit_buffer |= (1 << 0); } 2 13 15
1915 15 ▶ if (m->immediate) { bit_buffer |= (1 << 1); }
Branch: 1 branch
BranchTrueFalseTotal
if (m->immediate) { bit_buffer |= (1 << 1); } 2 13 15
1916 15 ▶ E_8(encoded, offset, bit_buffer);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, bit_buffer); 0 15 15
1917 15 offset++;
1918 15 return offset;
1919 }
1920 0 case AMQP_BASIC_RETURN_METHOD: {
1921 0 amqp_basic_return_t *m = (amqp_basic_return_t *) decoded;
1922 0 ▶ E_16(encoded, offset, m->reply_code);
Branch: 1 branch
BranchTrueFalseTotal
E_16(encoded, offset, m->reply_code); 0 0 0
1923 0 offset += 2;
1924 0 ▶ E_8(encoded, offset, m->reply_text.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->reply_text.len); 0 0 0
1925 0 offset++;
1926 0 ▶ E_BYTES(encoded, offset, m->reply_text.len, m->reply_text.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->reply_text.len, m->reply_text.bytes); 0 0 0
1927 0 offset += m->reply_text.len;
1928 0 ▶ E_8(encoded, offset, m->exchange.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->exchange.len); 0 0 0
1929 0 offset++;
1930 0 ▶ E_BYTES(encoded, offset, m->exchange.len, m->exchange.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->exchange.len, m->exchange.bytes); 0 0 0
1931 0 offset += m->exchange.len;
1932 0 ▶ E_8(encoded, offset, m->routing_key.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->routing_key.len); 0 0 0
1933 0 offset++;
1934 0 ▶ E_BYTES(encoded, offset, m->routing_key.len, m->routing_key.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->routing_key.len, m->routing_key.bytes); 0 0 0
1935 0 offset += m->routing_key.len;
1936 0 return offset;
1937 }
1938 0 case AMQP_BASIC_DELIVER_METHOD: {
1939 0 amqp_basic_deliver_t *m = (amqp_basic_deliver_t *) decoded;
1940 0 ▶ E_8(encoded, offset, m->consumer_tag.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->consumer_tag.len); 0 0 0
1941 0 offset++;
1942 0 ▶ E_BYTES(encoded, offset, m->consumer_tag.len, m->consumer_tag.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->consumer_tag.len, m->consumer_tag.bytes); 0 0 0
1943 0 offset += m->consumer_tag.len;
1944 0 ▶ E_64(encoded, offset, m->delivery_tag);
Branch: 2 branches
BranchTrueFalseTotal
E_64(encoded, offset, m->delivery_tag); 0 0 0
E_64(encoded, offset, m->delivery_tag); 0 0 0
1945 0 offset += 8;
1946 0 bit_buffer = 0;
1947 0 ▶ if (m->redelivered) { bit_buffer |= (1 << 0); }
Branch: 1 branch
BranchTrueFalseTotal
if (m->redelivered) { bit_buffer |= (1 << 0); } 0 0 0
1948 0 ▶ E_8(encoded, offset, bit_buffer);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, bit_buffer); 0 0 0
1949 0 offset++;
1950 0 ▶ E_8(encoded, offset, m->exchange.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->exchange.len); 0 0 0
1951 0 offset++;
1952 0 ▶ E_BYTES(encoded, offset, m->exchange.len, m->exchange.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->exchange.len, m->exchange.bytes); 0 0 0
1953 0 offset += m->exchange.len;
1954 0 ▶ E_8(encoded, offset, m->routing_key.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->routing_key.len); 0 0 0
1955 0 offset++;
1956 0 ▶ E_BYTES(encoded, offset, m->routing_key.len, m->routing_key.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->routing_key.len, m->routing_key.bytes); 0 0 0
1957 0 offset += m->routing_key.len;
1958 0 return offset;
1959 }
1960 5 case AMQP_BASIC_GET_METHOD: {
1961 5 amqp_basic_get_t *m = (amqp_basic_get_t *) decoded;
1962 5 ▶ E_16(encoded, offset, m->ticket);
Branch: 1 branch
BranchTrueFalseTotal
E_16(encoded, offset, m->ticket); 0 5 5
1963 5 offset += 2;
1964 5 ▶ E_8(encoded, offset, m->queue.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->queue.len); 0 5 5
1965 5 offset++;
1966 5 ▶ E_BYTES(encoded, offset, m->queue.len, m->queue.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->queue.len, m->queue.bytes); 0 5 5
1967 5 offset += m->queue.len;
1968 5 bit_buffer = 0;
1969 5 ▶ if (m->no_ack) { bit_buffer |= (1 << 0); }
Branch: 1 branch
BranchTrueFalseTotal
if (m->no_ack) { bit_buffer |= (1 << 0); } 5 0 5
1970 5 ▶ E_8(encoded, offset, bit_buffer);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, bit_buffer); 0 5 5
1971 5 offset++;
1972 5 return offset;
1973 }
1974 0 case AMQP_BASIC_GET_OK_METHOD: {
1975 0 amqp_basic_get_ok_t *m = (amqp_basic_get_ok_t *) decoded;
1976 0 ▶ E_64(encoded, offset, m->delivery_tag);
Branch: 2 branches
BranchTrueFalseTotal
E_64(encoded, offset, m->delivery_tag); 0 0 0
E_64(encoded, offset, m->delivery_tag); 0 0 0
1977 0 offset += 8;
1978 0 bit_buffer = 0;
1979 0 ▶ if (m->redelivered) { bit_buffer |= (1 << 0); }
Branch: 1 branch
BranchTrueFalseTotal
if (m->redelivered) { bit_buffer |= (1 << 0); } 0 0 0
1980 0 ▶ E_8(encoded, offset, bit_buffer);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, bit_buffer); 0 0 0
1981 0 offset++;
1982 0 ▶ E_8(encoded, offset, m->exchange.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->exchange.len); 0 0 0
1983 0 offset++;
1984 0 ▶ E_BYTES(encoded, offset, m->exchange.len, m->exchange.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->exchange.len, m->exchange.bytes); 0 0 0
1985 0 offset += m->exchange.len;
1986 0 ▶ E_8(encoded, offset, m->routing_key.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->routing_key.len); 0 0 0
1987 0 offset++;
1988 0 ▶ E_BYTES(encoded, offset, m->routing_key.len, m->routing_key.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->routing_key.len, m->routing_key.bytes); 0 0 0
1989 0 offset += m->routing_key.len;
1990 0 ▶ E_32(encoded, offset, m->message_count);
Branch: 1 branch
BranchTrueFalseTotal
E_32(encoded, offset, m->message_count); 0 0 0
1991 0 offset += 4;
1992 0 return offset;
1993 }
1994 0 case AMQP_BASIC_GET_EMPTY_METHOD: {
1995 0 amqp_basic_get_empty_t *m = (amqp_basic_get_empty_t *) decoded;
1996 0 ▶ E_8(encoded, offset, m->cluster_id.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->cluster_id.len); 0 0 0
1997 0 offset++;
1998 0 ▶ E_BYTES(encoded, offset, m->cluster_id.len, m->cluster_id.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->cluster_id.len, m->cluster_id.bytes); 0 0 0
1999 0 offset += m->cluster_id.len;
2000 0 return offset;
2001 }
2002 0 case AMQP_BASIC_ACK_METHOD: {
2003 0 amqp_basic_ack_t *m = (amqp_basic_ack_t *) decoded;
2004 0 ▶ E_64(encoded, offset, m->delivery_tag);
Branch: 2 branches
BranchTrueFalseTotal
E_64(encoded, offset, m->delivery_tag); 0 0 0
E_64(encoded, offset, m->delivery_tag); 0 0 0
2005 0 offset += 8;
2006 0 bit_buffer = 0;
2007 0 ▶ if (m->multiple) { bit_buffer |= (1 << 0); }
Branch: 1 branch
BranchTrueFalseTotal
if (m->multiple) { bit_buffer |= (1 << 0); } 0 0 0
2008 0 ▶ E_8(encoded, offset, bit_buffer);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, bit_buffer); 0 0 0
2009 0 offset++;
2010 0 return offset;
2011 }
2012 0 case AMQP_BASIC_REJECT_METHOD: {
2013 0 amqp_basic_reject_t *m = (amqp_basic_reject_t *) decoded;
2014 0 ▶ E_64(encoded, offset, m->delivery_tag);
Branch: 2 branches
BranchTrueFalseTotal
E_64(encoded, offset, m->delivery_tag); 0 0 0
E_64(encoded, offset, m->delivery_tag); 0 0 0
2015 0 offset += 8;
2016 0 bit_buffer = 0;
2017 0 ▶ if (m->requeue) { bit_buffer |= (1 << 0); }
Branch: 1 branch
BranchTrueFalseTotal
if (m->requeue) { bit_buffer |= (1 << 0); } 0 0 0
2018 0 ▶ E_8(encoded, offset, bit_buffer);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, bit_buffer); 0 0 0
2019 0 offset++;
2020 0 return offset;
2021 }
2022 0 case AMQP_BASIC_RECOVER_METHOD: {
2023 0 amqp_basic_recover_t *m = (amqp_basic_recover_t *) decoded;
2024 0 bit_buffer = 0;
2025 0 ▶ if (m->requeue) { bit_buffer |= (1 << 0); }
Branch: 1 branch
BranchTrueFalseTotal
if (m->requeue) { bit_buffer |= (1 << 0); } 0 0 0
2026 0 ▶ E_8(encoded, offset, bit_buffer);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, bit_buffer); 0 0 0
2027 0 offset++;
2028 0 return offset;
2029 }
2030 0 case AMQP_FILE_QOS_METHOD: {
2031 0 amqp_file_qos_t *m = (amqp_file_qos_t *) decoded;
2032 0 ▶ E_32(encoded, offset, m->prefetch_size);
Branch: 1 branch
BranchTrueFalseTotal
E_32(encoded, offset, m->prefetch_size); 0 0 0
2033 0 offset += 4;
2034 0 ▶ E_16(encoded, offset, m->prefetch_count);
Branch: 1 branch
BranchTrueFalseTotal
E_16(encoded, offset, m->prefetch_count); 0 0 0
2035 0 offset += 2;
2036 0 bit_buffer = 0;
2037 0 ▶ if (m->global) { bit_buffer |= (1 << 0); }
Branch: 1 branch
BranchTrueFalseTotal
if (m->global) { bit_buffer |= (1 << 0); } 0 0 0
2038 0 ▶ E_8(encoded, offset, bit_buffer);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, bit_buffer); 0 0 0
2039 0 offset++;
2040 0 return offset;
2041 }
2042 0 case AMQP_FILE_QOS_OK_METHOD: {
2043 0 return offset;
2044 }
2045 0 case AMQP_FILE_CONSUME_METHOD: {
2046 0 amqp_file_consume_t *m = (amqp_file_consume_t *) decoded;
2047 0 ▶ E_16(encoded, offset, m->ticket);
Branch: 1 branch
BranchTrueFalseTotal
E_16(encoded, offset, m->ticket); 0 0 0
2048 0 offset += 2;
2049 0 ▶ E_8(encoded, offset, m->queue.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->queue.len); 0 0 0
2050 0 offset++;
2051 0 ▶ E_BYTES(encoded, offset, m->queue.len, m->queue.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->queue.len, m->queue.bytes); 0 0 0
2052 0 offset += m->queue.len;
2053 0 ▶ E_8(encoded, offset, m->consumer_tag.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->consumer_tag.len); 0 0 0
2054 0 offset++;
2055 0 ▶ E_BYTES(encoded, offset, m->consumer_tag.len, m->consumer_tag.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->consumer_tag.len, m->consumer_tag.bytes); 0 0 0
2056 0 offset += m->consumer_tag.len;
2057 0 bit_buffer = 0;
2058 0 ▶ if (m->no_local) { bit_buffer |= (1 << 0); }
Branch: 1 branch
BranchTrueFalseTotal
if (m->no_local) { bit_buffer |= (1 << 0); } 0 0 0
2059 0 ▶ if (m->no_ack) { bit_buffer |= (1 << 1); }
Branch: 1 branch
BranchTrueFalseTotal
if (m->no_ack) { bit_buffer |= (1 << 1); } 0 0 0
2060 0 ▶ if (m->exclusive) { bit_buffer |= (1 << 2); }
Branch: 1 branch
BranchTrueFalseTotal
if (m->exclusive) { bit_buffer |= (1 << 2); } 0 0 0
2061 0 ▶ if (m->nowait) { bit_buffer |= (1 << 3); }
Branch: 1 branch
BranchTrueFalseTotal
if (m->nowait) { bit_buffer |= (1 << 3); } 0 0 0
2062 0 ▶ E_8(encoded, offset, bit_buffer);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, bit_buffer); 0 0 0
2063 0 offset++;
2064 0 return offset;
2065 }
2066 0 case AMQP_FILE_CONSUME_OK_METHOD: {
2067 0 amqp_file_consume_ok_t *m = (amqp_file_consume_ok_t *) decoded;
2068 0 ▶ E_8(encoded, offset, m->consumer_tag.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->consumer_tag.len); 0 0 0
2069 0 offset++;
2070 0 ▶ E_BYTES(encoded, offset, m->consumer_tag.len, m->consumer_tag.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->consumer_tag.len, m->consumer_tag.bytes); 0 0 0
2071 0 offset += m->consumer_tag.len;
2072 0 return offset;
2073 }
2074 0 case AMQP_FILE_CANCEL_METHOD: {
2075 0 amqp_file_cancel_t *m = (amqp_file_cancel_t *) decoded;
2076 0 ▶ E_8(encoded, offset, m->consumer_tag.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->consumer_tag.len); 0 0 0
2077 0 offset++;
2078 0 ▶ E_BYTES(encoded, offset, m->consumer_tag.len, m->consumer_tag.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->consumer_tag.len, m->consumer_tag.bytes); 0 0 0
2079 0 offset += m->consumer_tag.len;
2080 0 bit_buffer = 0;
2081 0 ▶ if (m->nowait) { bit_buffer |= (1 << 0); }
Branch: 1 branch
BranchTrueFalseTotal
if (m->nowait) { bit_buffer |= (1 << 0); } 0 0 0
2082 0 ▶ E_8(encoded, offset, bit_buffer);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, bit_buffer); 0 0 0
2083 0 offset++;
2084 0 return offset;
2085 }
2086 0 case AMQP_FILE_CANCEL_OK_METHOD: {
2087 0 amqp_file_cancel_ok_t *m = (amqp_file_cancel_ok_t *) decoded;
2088 0 ▶ E_8(encoded, offset, m->consumer_tag.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->consumer_tag.len); 0 0 0
2089 0 offset++;
2090 0 ▶ E_BYTES(encoded, offset, m->consumer_tag.len, m->consumer_tag.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->consumer_tag.len, m->consumer_tag.bytes); 0 0 0
2091 0 offset += m->consumer_tag.len;
2092 0 return offset;
2093 }
2094 0 case AMQP_FILE_OPEN_METHOD: {
2095 0 amqp_file_open_t *m = (amqp_file_open_t *) decoded;
2096 0 ▶ E_8(encoded, offset, m->identifier.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->identifier.len); 0 0 0
2097 0 offset++;
2098 0 ▶ E_BYTES(encoded, offset, m->identifier.len, m->identifier.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->identifier.len, m->identifier.bytes); 0 0 0
2099 0 offset += m->identifier.len;
2100 0 ▶ E_64(encoded, offset, m->content_size);
Branch: 2 branches
BranchTrueFalseTotal
E_64(encoded, offset, m->content_size); 0 0 0
E_64(encoded, offset, m->content_size); 0 0 0
2101 0 offset += 8;
2102 0 return offset;
2103 }
2104 0 case AMQP_FILE_OPEN_OK_METHOD: {
2105 0 amqp_file_open_ok_t *m = (amqp_file_open_ok_t *) decoded;
2106 0 ▶ E_64(encoded, offset, m->staged_size);
Branch: 2 branches
BranchTrueFalseTotal
E_64(encoded, offset, m->staged_size); 0 0 0
E_64(encoded, offset, m->staged_size); 0 0 0
2107 0 offset += 8;
2108 0 return offset;
2109 }
2110 0 case AMQP_FILE_STAGE_METHOD: {
2111 0 return offset;
2112 }
2113 0 case AMQP_FILE_PUBLISH_METHOD: {
2114 0 amqp_file_publish_t *m = (amqp_file_publish_t *) decoded;
2115 0 ▶ E_16(encoded, offset, m->ticket);
Branch: 1 branch
BranchTrueFalseTotal
E_16(encoded, offset, m->ticket); 0 0 0
2116 0 offset += 2;
2117 0 ▶ E_8(encoded, offset, m->exchange.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->exchange.len); 0 0 0
2118 0 offset++;
2119 0 ▶ E_BYTES(encoded, offset, m->exchange.len, m->exchange.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->exchange.len, m->exchange.bytes); 0 0 0
2120 0 offset += m->exchange.len;
2121 0 ▶ E_8(encoded, offset, m->routing_key.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->routing_key.len); 0 0 0
2122 0 offset++;
2123 0 ▶ E_BYTES(encoded, offset, m->routing_key.len, m->routing_key.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->routing_key.len, m->routing_key.bytes); 0 0 0
2124 0 offset += m->routing_key.len;
2125 0 bit_buffer = 0;
2126 0 ▶ if (m->mandatory) { bit_buffer |= (1 << 0); }
Branch: 1 branch
BranchTrueFalseTotal
if (m->mandatory) { bit_buffer |= (1 << 0); } 0 0 0
2127 0 ▶ if (m->immediate) { bit_buffer |= (1 << 1); }
Branch: 1 branch
BranchTrueFalseTotal
if (m->immediate) { bit_buffer |= (1 << 1); } 0 0 0
2128 0 ▶ E_8(encoded, offset, bit_buffer);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, bit_buffer); 0 0 0
2129 0 offset++;
2130 0 ▶ E_8(encoded, offset, m->identifier.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->identifier.len); 0 0 0
2131 0 offset++;
2132 0 ▶ E_BYTES(encoded, offset, m->identifier.len, m->identifier.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->identifier.len, m->identifier.bytes); 0 0 0
2133 0 offset += m->identifier.len;
2134 0 return offset;
2135 }
2136 0 case AMQP_FILE_RETURN_METHOD: {
2137 0 amqp_file_return_t *m = (amqp_file_return_t *) decoded;
2138 0 ▶ E_16(encoded, offset, m->reply_code);
Branch: 1 branch
BranchTrueFalseTotal
E_16(encoded, offset, m->reply_code); 0 0 0
2139 0 offset += 2;
2140 0 ▶ E_8(encoded, offset, m->reply_text.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->reply_text.len); 0 0 0
2141 0 offset++;
2142 0 ▶ E_BYTES(encoded, offset, m->reply_text.len, m->reply_text.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->reply_text.len, m->reply_text.bytes); 0 0 0
2143 0 offset += m->reply_text.len;
2144 0 ▶ E_8(encoded, offset, m->exchange.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->exchange.len); 0 0 0
2145 0 offset++;
2146 0 ▶ E_BYTES(encoded, offset, m->exchange.len, m->exchange.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->exchange.len, m->exchange.bytes); 0 0 0
2147 0 offset += m->exchange.len;
2148 0 ▶ E_8(encoded, offset, m->routing_key.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->routing_key.len); 0 0 0
2149 0 offset++;
2150 0 ▶ E_BYTES(encoded, offset, m->routing_key.len, m->routing_key.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->routing_key.len, m->routing_key.bytes); 0 0 0
2151 0 offset += m->routing_key.len;
2152 0 return offset;
2153 }
2154 0 case AMQP_FILE_DELIVER_METHOD: {
2155 0 amqp_file_deliver_t *m = (amqp_file_deliver_t *) decoded;
2156 0 ▶ E_8(encoded, offset, m->consumer_tag.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->consumer_tag.len); 0 0 0
2157 0 offset++;
2158 0 ▶ E_BYTES(encoded, offset, m->consumer_tag.len, m->consumer_tag.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->consumer_tag.len, m->consumer_tag.bytes); 0 0 0
2159 0 offset += m->consumer_tag.len;
2160 0 ▶ E_64(encoded, offset, m->delivery_tag);
Branch: 2 branches
BranchTrueFalseTotal
E_64(encoded, offset, m->delivery_tag); 0 0 0
E_64(encoded, offset, m->delivery_tag); 0 0 0
2161 0 offset += 8;
2162 0 bit_buffer = 0;
2163 0 ▶ if (m->redelivered) { bit_buffer |= (1 << 0); }
Branch: 1 branch
BranchTrueFalseTotal
if (m->redelivered) { bit_buffer |= (1 << 0); } 0 0 0
2164 0 ▶ E_8(encoded, offset, bit_buffer);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, bit_buffer); 0 0 0
2165 0 offset++;
2166 0 ▶ E_8(encoded, offset, m->exchange.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->exchange.len); 0 0 0
2167 0 offset++;
2168 0 ▶ E_BYTES(encoded, offset, m->exchange.len, m->exchange.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->exchange.len, m->exchange.bytes); 0 0 0
2169 0 offset += m->exchange.len;
2170 0 ▶ E_8(encoded, offset, m->routing_key.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->routing_key.len); 0 0 0
2171 0 offset++;
2172 0 ▶ E_BYTES(encoded, offset, m->routing_key.len, m->routing_key.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->routing_key.len, m->routing_key.bytes); 0 0 0
2173 0 offset += m->routing_key.len;
2174 0 ▶ E_8(encoded, offset, m->identifier.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->identifier.len); 0 0 0
2175 0 offset++;
2176 0 ▶ E_BYTES(encoded, offset, m->identifier.len, m->identifier.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->identifier.len, m->identifier.bytes); 0 0 0
2177 0 offset += m->identifier.len;
2178 0 return offset;
2179 }
2180 0 case AMQP_FILE_ACK_METHOD: {
2181 0 amqp_file_ack_t *m = (amqp_file_ack_t *) decoded;
2182 0 ▶ E_64(encoded, offset, m->delivery_tag);
Branch: 2 branches
BranchTrueFalseTotal
E_64(encoded, offset, m->delivery_tag); 0 0 0
E_64(encoded, offset, m->delivery_tag); 0 0 0
2183 0 offset += 8;
2184 0 bit_buffer = 0;
2185 0 ▶ if (m->multiple) { bit_buffer |= (1 << 0); }
Branch: 1 branch
BranchTrueFalseTotal
if (m->multiple) { bit_buffer |= (1 << 0); } 0 0 0
2186 0 ▶ E_8(encoded, offset, bit_buffer);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, bit_buffer); 0 0 0
2187 0 offset++;
2188 0 return offset;
2189 }
2190 0 case AMQP_FILE_REJECT_METHOD: {
2191 0 amqp_file_reject_t *m = (amqp_file_reject_t *) decoded;
2192 0 ▶ E_64(encoded, offset, m->delivery_tag);
Branch: 2 branches
BranchTrueFalseTotal
E_64(encoded, offset, m->delivery_tag); 0 0 0
E_64(encoded, offset, m->delivery_tag); 0 0 0
2193 0 offset += 8;
2194 0 bit_buffer = 0;
2195 0 ▶ if (m->requeue) { bit_buffer |= (1 << 0); }
Branch: 1 branch
BranchTrueFalseTotal
if (m->requeue) { bit_buffer |= (1 << 0); } 0 0 0
2196 0 ▶ E_8(encoded, offset, bit_buffer);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, bit_buffer); 0 0 0
2197 0 offset++;
2198 0 return offset;
2199 }
2200 0 case AMQP_STREAM_QOS_METHOD: {
2201 0 amqp_stream_qos_t *m = (amqp_stream_qos_t *) decoded;
2202 0 ▶ E_32(encoded, offset, m->prefetch_size);
Branch: 1 branch
BranchTrueFalseTotal
E_32(encoded, offset, m->prefetch_size); 0 0 0
2203 0 offset += 4;
2204 0 ▶ E_16(encoded, offset, m->prefetch_count);
Branch: 1 branch
BranchTrueFalseTotal
E_16(encoded, offset, m->prefetch_count); 0 0 0
2205 0 offset += 2;
2206 0 ▶ E_32(encoded, offset, m->consume_rate);
Branch: 1 branch
BranchTrueFalseTotal
E_32(encoded, offset, m->consume_rate); 0 0 0
2207 0 offset += 4;
2208 0 bit_buffer = 0;
2209 0 ▶ if (m->global) { bit_buffer |= (1 << 0); }
Branch: 1 branch
BranchTrueFalseTotal
if (m->global) { bit_buffer |= (1 << 0); } 0 0 0
2210 0 ▶ E_8(encoded, offset, bit_buffer);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, bit_buffer); 0 0 0
2211 0 offset++;
2212 0 return offset;
2213 }
2214 0 case AMQP_STREAM_QOS_OK_METHOD: {
2215 0 return offset;
2216 }
2217 0 case AMQP_STREAM_CONSUME_METHOD: {
2218 0 amqp_stream_consume_t *m = (amqp_stream_consume_t *) decoded;
2219 0 ▶ E_16(encoded, offset, m->ticket);
Branch: 1 branch
BranchTrueFalseTotal
E_16(encoded, offset, m->ticket); 0 0 0
2220 0 offset += 2;
2221 0 ▶ E_8(encoded, offset, m->queue.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->queue.len); 0 0 0
2222 0 offset++;
2223 0 ▶ E_BYTES(encoded, offset, m->queue.len, m->queue.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->queue.len, m->queue.bytes); 0 0 0
2224 0 offset += m->queue.len;
2225 0 ▶ E_8(encoded, offset, m->consumer_tag.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->consumer_tag.len); 0 0 0
2226 0 offset++;
2227 0 ▶ E_BYTES(encoded, offset, m->consumer_tag.len, m->consumer_tag.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->consumer_tag.len, m->consumer_tag.bytes); 0 0 0
2228 0 offset += m->consumer_tag.len;
2229 0 bit_buffer = 0;
2230 0 ▶ if (m->no_local) { bit_buffer |= (1 << 0); }
Branch: 1 branch
BranchTrueFalseTotal
if (m->no_local) { bit_buffer |= (1 << 0); } 0 0 0
2231 0 ▶ if (m->exclusive) { bit_buffer |= (1 << 1); }
Branch: 1 branch
BranchTrueFalseTotal
if (m->exclusive) { bit_buffer |= (1 << 1); } 0 0 0
2232 0 ▶ if (m->nowait) { bit_buffer |= (1 << 2); }
Branch: 1 branch
BranchTrueFalseTotal
if (m->nowait) { bit_buffer |= (1 << 2); } 0 0 0
2233 0 ▶ E_8(encoded, offset, bit_buffer);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, bit_buffer); 0 0 0
2234 0 offset++;
2235 0 return offset;
2236 }
2237 0 case AMQP_STREAM_CONSUME_OK_METHOD: {
2238 0 amqp_stream_consume_ok_t *m = (amqp_stream_consume_ok_t *) decoded;
2239 0 ▶ E_8(encoded, offset, m->consumer_tag.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->consumer_tag.len); 0 0 0
2240 0 offset++;
2241 0 ▶ E_BYTES(encoded, offset, m->consumer_tag.len, m->consumer_tag.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->consumer_tag.len, m->consumer_tag.bytes); 0 0 0
2242 0 offset += m->consumer_tag.len;
2243 0 return offset;
2244 }
2245 0 case AMQP_STREAM_CANCEL_METHOD: {
2246 0 amqp_stream_cancel_t *m = (amqp_stream_cancel_t *) decoded;
2247 0 ▶ E_8(encoded, offset, m->consumer_tag.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->consumer_tag.len); 0 0 0
2248 0 offset++;
2249 0 ▶ E_BYTES(encoded, offset, m->consumer_tag.len, m->consumer_tag.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->consumer_tag.len, m->consumer_tag.bytes); 0 0 0
2250 0 offset += m->consumer_tag.len;
2251 0 bit_buffer = 0;
2252 0 ▶ if (m->nowait) { bit_buffer |= (1 << 0); }
Branch: 1 branch
BranchTrueFalseTotal
if (m->nowait) { bit_buffer |= (1 << 0); } 0 0 0
2253 0 ▶ E_8(encoded, offset, bit_buffer);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, bit_buffer); 0 0 0
2254 0 offset++;
2255 0 return offset;
2256 }
2257 0 case AMQP_STREAM_CANCEL_OK_METHOD: {
2258 0 amqp_stream_cancel_ok_t *m = (amqp_stream_cancel_ok_t *) decoded;
2259 0 ▶ E_8(encoded, offset, m->consumer_tag.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->consumer_tag.len); 0 0 0
2260 0 offset++;
2261 0 ▶ E_BYTES(encoded, offset, m->consumer_tag.len, m->consumer_tag.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->consumer_tag.len, m->consumer_tag.bytes); 0 0 0
2262 0 offset += m->consumer_tag.len;
2263 0 return offset;
2264 }
2265 0 case AMQP_STREAM_PUBLISH_METHOD: {
2266 0 amqp_stream_publish_t *m = (amqp_stream_publish_t *) decoded;
2267 0 ▶ E_16(encoded, offset, m->ticket);
Branch: 1 branch
BranchTrueFalseTotal
E_16(encoded, offset, m->ticket); 0 0 0
2268 0 offset += 2;
2269 0 ▶ E_8(encoded, offset, m->exchange.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->exchange.len); 0 0 0
2270 0 offset++;
2271 0 ▶ E_BYTES(encoded, offset, m->exchange.len, m->exchange.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->exchange.len, m->exchange.bytes); 0 0 0
2272 0 offset += m->exchange.len;
2273 0 ▶ E_8(encoded, offset, m->routing_key.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->routing_key.len); 0 0 0
2274 0 offset++;
2275 0 ▶ E_BYTES(encoded, offset, m->routing_key.len, m->routing_key.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->routing_key.len, m->routing_key.bytes); 0 0 0
2276 0 offset += m->routing_key.len;
2277 0 bit_buffer = 0;
2278 0 ▶ if (m->mandatory) { bit_buffer |= (1 << 0); }
Branch: 1 branch
BranchTrueFalseTotal
if (m->mandatory) { bit_buffer |= (1 << 0); } 0 0 0
2279 0 ▶ if (m->immediate) { bit_buffer |= (1 << 1); }
Branch: 1 branch
BranchTrueFalseTotal
if (m->immediate) { bit_buffer |= (1 << 1); } 0 0 0
2280 0 ▶ E_8(encoded, offset, bit_buffer);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, bit_buffer); 0 0 0
2281 0 offset++;
2282 0 return offset;
2283 }
2284 0 case AMQP_STREAM_RETURN_METHOD: {
2285 0 amqp_stream_return_t *m = (amqp_stream_return_t *) decoded;
2286 0 ▶ E_16(encoded, offset, m->reply_code);
Branch: 1 branch
BranchTrueFalseTotal
E_16(encoded, offset, m->reply_code); 0 0 0
2287 0 offset += 2;
2288 0 ▶ E_8(encoded, offset, m->reply_text.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->reply_text.len); 0 0 0
2289 0 offset++;
2290 0 ▶ E_BYTES(encoded, offset, m->reply_text.len, m->reply_text.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->reply_text.len, m->reply_text.bytes); 0 0 0
2291 0 offset += m->reply_text.len;
2292 0 ▶ E_8(encoded, offset, m->exchange.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->exchange.len); 0 0 0
2293 0 offset++;
2294 0 ▶ E_BYTES(encoded, offset, m->exchange.len, m->exchange.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->exchange.len, m->exchange.bytes); 0 0 0
2295 0 offset += m->exchange.len;
2296 0 ▶ E_8(encoded, offset, m->routing_key.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->routing_key.len); 0 0 0
2297 0 offset++;
2298 0 ▶ E_BYTES(encoded, offset, m->routing_key.len, m->routing_key.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->routing_key.len, m->routing_key.bytes); 0 0 0
2299 0 offset += m->routing_key.len;
2300 0 return offset;
2301 }
2302 0 case AMQP_STREAM_DELIVER_METHOD: {
2303 0 amqp_stream_deliver_t *m = (amqp_stream_deliver_t *) decoded;
2304 0 ▶ E_8(encoded, offset, m->consumer_tag.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->consumer_tag.len); 0 0 0
2305 0 offset++;
2306 0 ▶ E_BYTES(encoded, offset, m->consumer_tag.len, m->consumer_tag.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->consumer_tag.len, m->consumer_tag.bytes); 0 0 0
2307 0 offset += m->consumer_tag.len;
2308 0 ▶ E_64(encoded, offset, m->delivery_tag);
Branch: 2 branches
BranchTrueFalseTotal
E_64(encoded, offset, m->delivery_tag); 0 0 0
E_64(encoded, offset, m->delivery_tag); 0 0 0
2309 0 offset += 8;
2310 0 ▶ E_8(encoded, offset, m->exchange.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->exchange.len); 0 0 0
2311 0 offset++;
2312 0 ▶ E_BYTES(encoded, offset, m->exchange.len, m->exchange.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->exchange.len, m->exchange.bytes); 0 0 0
2313 0 offset += m->exchange.len;
2314 0 ▶ E_8(encoded, offset, m->queue.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->queue.len); 0 0 0
2315 0 offset++;
2316 0 ▶ E_BYTES(encoded, offset, m->queue.len, m->queue.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->queue.len, m->queue.bytes); 0 0 0
2317 0 offset += m->queue.len;
2318 0 return offset;
2319 }
2320 1 case AMQP_TX_SELECT_METHOD: {
2321 1 return offset;
2322 }
2323 0 case AMQP_TX_SELECT_OK_METHOD: {
2324 0 return offset;
2325 }
2326 1 case AMQP_TX_COMMIT_METHOD: {
2327 1 return offset;
2328 }
2329 0 case AMQP_TX_COMMIT_OK_METHOD: {
2330 0 return offset;
2331 }
2332 1 case AMQP_TX_ROLLBACK_METHOD: {
2333 1 return offset;
2334 }
2335 0 case AMQP_TX_ROLLBACK_OK_METHOD: {
2336 0 return offset;
2337 }
2338 0 case AMQP_DTX_SELECT_METHOD: {
2339 0 return offset;
2340 }
2341 0 case AMQP_DTX_SELECT_OK_METHOD: {
2342 0 return offset;
2343 }
2344 0 case AMQP_DTX_START_METHOD: {
2345 0 amqp_dtx_start_t *m = (amqp_dtx_start_t *) decoded;
2346 0 ▶ E_8(encoded, offset, m->dtx_identifier.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->dtx_identifier.len); 0 0 0
2347 0 offset++;
2348 0 ▶ E_BYTES(encoded, offset, m->dtx_identifier.len, m->dtx_identifier.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->dtx_identifier.len, m->dtx_identifier.bytes); 0 0 0
2349 0 offset += m->dtx_identifier.len;
2350 0 return offset;
2351 }
2352 0 case AMQP_DTX_START_OK_METHOD: {
2353 0 return offset;
2354 }
2355 0 case AMQP_TUNNEL_REQUEST_METHOD: {
2356 0 amqp_tunnel_request_t *m = (amqp_tunnel_request_t *) decoded;
2357 0 table_result = amqp_encode_table(encoded, &(m->meta_data), &offset);
2358 0 ▶ if (table_result < 0) return table_result;
Branch: 1 branch
BranchTrueFalseTotal
if (table_result < 0) return table_result; 0 0 0
2359 0 return offset;
2360 }
2361 0 case AMQP_TEST_INTEGER_METHOD: {
2362 0 amqp_test_integer_t *m = (amqp_test_integer_t *) decoded;
2363 0 ▶ E_8(encoded, offset, m->integer_1);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->integer_1); 0 0 0
2364 0 offset++;
2365 0 ▶ E_16(encoded, offset, m->integer_2);
Branch: 1 branch
BranchTrueFalseTotal
E_16(encoded, offset, m->integer_2); 0 0 0
2366 0 offset += 2;
2367 0 ▶ E_32(encoded, offset, m->integer_3);
Branch: 1 branch
BranchTrueFalseTotal
E_32(encoded, offset, m->integer_3); 0 0 0
2368 0 offset += 4;
2369 0 ▶ E_64(encoded, offset, m->integer_4);
Branch: 2 branches
BranchTrueFalseTotal
E_64(encoded, offset, m->integer_4); 0 0 0
E_64(encoded, offset, m->integer_4); 0 0 0
2370 0 offset += 8;
2371 0 ▶ E_8(encoded, offset, m->operation);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->operation); 0 0 0
2372 0 offset++;
2373 0 return offset;
2374 }
2375 0 case AMQP_TEST_INTEGER_OK_METHOD: {
2376 0 amqp_test_integer_ok_t *m = (amqp_test_integer_ok_t *) decoded;
2377 0 ▶ E_64(encoded, offset, m->result);
Branch: 2 branches
BranchTrueFalseTotal
E_64(encoded, offset, m->result); 0 0 0
E_64(encoded, offset, m->result); 0 0 0
2378 0 offset += 8;
2379 0 return offset;
2380 }
2381 0 case AMQP_TEST_STRING_METHOD: {
2382 0 amqp_test_string_t *m = (amqp_test_string_t *) decoded;
2383 0 ▶ E_8(encoded, offset, m->string_1.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->string_1.len); 0 0 0
2384 0 offset++;
2385 0 ▶ E_BYTES(encoded, offset, m->string_1.len, m->string_1.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->string_1.len, m->string_1.bytes); 0 0 0
2386 0 offset += m->string_1.len;
2387 0 ▶ E_32(encoded, offset, m->string_2.len);
Branch: 1 branch
BranchTrueFalseTotal
E_32(encoded, offset, m->string_2.len); 0 0 0
2388 0 offset += 4;
2389 0 ▶ E_BYTES(encoded, offset, m->string_2.len, m->string_2.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->string_2.len, m->string_2.bytes); 0 0 0
2390 0 offset += m->string_2.len;
2391 0 ▶ E_8(encoded, offset, m->operation);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->operation); 0 0 0
2392 0 offset++;
2393 0 return offset;
2394 }
2395 0 case AMQP_TEST_STRING_OK_METHOD: {
2396 0 amqp_test_string_ok_t *m = (amqp_test_string_ok_t *) decoded;
2397 0 ▶ E_32(encoded, offset, m->result.len);
Branch: 1 branch
BranchTrueFalseTotal
E_32(encoded, offset, m->result.len); 0 0 0
2398 0 offset += 4;
2399 0 ▶ E_BYTES(encoded, offset, m->result.len, m->result.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->result.len, m->result.bytes); 0 0 0
2400 0 offset += m->result.len;
2401 0 return offset;
2402 }
2403 0 case AMQP_TEST_TABLE_METHOD: {
2404 0 amqp_test_table_t *m = (amqp_test_table_t *) decoded;
2405 0 table_result = amqp_encode_table(encoded, &(m->table), &offset);
2406 0 ▶ if (table_result < 0) return table_result;
Branch: 1 branch
BranchTrueFalseTotal
if (table_result < 0) return table_result; 0 0 0
2407 0 ▶ E_8(encoded, offset, m->integer_op);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->integer_op); 0 0 0
2408 0 offset++;
2409 0 ▶ E_8(encoded, offset, m->string_op);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, m->string_op); 0 0 0
2410 0 offset++;
2411 0 return offset;
2412 }
2413 0 case AMQP_TEST_TABLE_OK_METHOD: {
2414 0 amqp_test_table_ok_t *m = (amqp_test_table_ok_t *) decoded;
2415 0 ▶ E_64(encoded, offset, m->integer_result);
Branch: 2 branches
BranchTrueFalseTotal
E_64(encoded, offset, m->integer_result); 0 0 0
E_64(encoded, offset, m->integer_result); 0 0 0
2416 0 offset += 8;
2417 0 ▶ E_32(encoded, offset, m->string_result.len);
Branch: 1 branch
BranchTrueFalseTotal
E_32(encoded, offset, m->string_result.len); 0 0 0
2418 0 offset += 4;
2419 0 ▶ E_BYTES(encoded, offset, m->string_result.len, m->string_result.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, m->string_result.len, m->string_result.bytes); 0 0 0
2420 0 offset += m->string_result.len;
2421 0 return offset;
2422 }
2423 0 case AMQP_TEST_CONTENT_METHOD: {
2424 0 return offset;
2425 }
2426 0 case AMQP_TEST_CONTENT_OK_METHOD: {
2427 0 amqp_test_content_ok_t *m = (amqp_test_content_ok_t *) decoded;
2428 0 ▶ E_32(encoded, offset, m->content_checksum);
Branch: 1 branch
BranchTrueFalseTotal
E_32(encoded, offset, m->content_checksum); 0 0 0
2429 0 offset += 4;
2430 0 return offset;
2431 }
2432 0 default: return -ENOENT;
2433 }
2434 }
2435  
2436 0 int amqp_encode_properties(uint16_t class_id,
2437 void *decoded,
2438 amqp_bytes_t encoded)
2439 {
2440 0 int offset = 0;
2441 int table_result;
2442  
2443 /* Cheat, and get the flags out generically, relying on the
2444 similarity of structure between classes */
2445 0 amqp_flags_t flags = * (amqp_flags_t *) decoded; /* cheating! */
2446  
2447 {
2448 /* We take a copy of flags to avoid destroying it, as it is used
2449 in the autogenerated code below. */
2450 0 amqp_flags_t remaining_flags = flags;
2451 do {
2452 0 amqp_flags_t remainder = remaining_flags >> 16;
2453 0 uint16_t partial_flags = remaining_flags & 0xFFFE;
2454 0 ▶ if (remainder != 0) { partial_flags |= 1; }
Branch: 1 branch
BranchTrueFalseTotal
if (remainder != 0) { partial_flags |= 1; } 0 0 0
2455 0 ▶ E_16(encoded, offset, partial_flags);
Branch: 1 branch
BranchTrueFalseTotal
E_16(encoded, offset, partial_flags); 0 0 0
2456 0 offset += 2;
2457 0 remaining_flags = remainder;
2458 0 ▶ } while (remaining_flags != 0);
Branch: 1 branch
BranchTrueFalseTotal
} while (remaining_flags != 0); 0 0 0
2459 }
2460
2461 0 switch (class_id) {
2462 0 case 10: {
2463 0 return offset;
2464 }
2465 0 case 20: {
2466 0 return offset;
2467 }
2468 0 case 30: {
2469 0 return offset;
2470 }
2471 0 case 40: {
2472 0 return offset;
2473 }
2474 0 case 50: {
2475 0 return offset;
2476 }
2477 0 case 60: {
2478 0 amqp_basic_properties_t *p = (amqp_basic_properties_t *) decoded;
2479 0 ▶ if (flags & AMQP_BASIC_CONTENT_TYPE_FLAG) {
Branch: 1 branch
BranchTrueFalseTotal
if (flags & AMQP_BASIC_CONTENT_TYPE_FLAG) { 0 0 0
2480 0 ▶ E_8(encoded, offset, p->content_type.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, p->content_type.len); 0 0 0
2481 0 offset++;
2482 0 ▶ E_BYTES(encoded, offset, p->content_type.len, p->content_type.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, p->content_type.len, p->content_type.bytes); 0 0 0
2483 0 offset += p->content_type.len;
2484 }
2485 0 ▶ if (flags & AMQP_BASIC_CONTENT_ENCODING_FLAG) {
Branch: 1 branch
BranchTrueFalseTotal
if (flags & AMQP_BASIC_CONTENT_ENCODING_FLAG) { 0 0 0
2486 0 ▶ E_8(encoded, offset, p->content_encoding.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, p->content_encoding.len); 0 0 0
2487 0 offset++;
2488 0 ▶ E_BYTES(encoded, offset, p->content_encoding.len, p->content_encoding.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, p->content_encoding.len, p->content_encoding.bytes); 0 0 0
2489 0 offset += p->content_encoding.len;
2490 }
2491 0 ▶ if (flags & AMQP_BASIC_HEADERS_FLAG) {
Branch: 1 branch
BranchTrueFalseTotal
if (flags & AMQP_BASIC_HEADERS_FLAG) { 0 0 0
2492 0 table_result = amqp_encode_table(encoded, &(p->headers), &offset);
2493 0 ▶ if (table_result < 0) return table_result;
Branch: 1 branch
BranchTrueFalseTotal
if (table_result < 0) return table_result; 0 0 0
2494 }
2495 0 ▶ if (flags & AMQP_BASIC_DELIVERY_MODE_FLAG) {
Branch: 1 branch
BranchTrueFalseTotal
if (flags & AMQP_BASIC_DELIVERY_MODE_FLAG) { 0 0 0
2496 0 ▶ E_8(encoded, offset, p->delivery_mode);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, p->delivery_mode); 0 0 0
2497 0 offset++;
2498 }
2499 0 ▶ if (flags & AMQP_BASIC_PRIORITY_FLAG) {
Branch: 1 branch
BranchTrueFalseTotal
if (flags & AMQP_BASIC_PRIORITY_FLAG) { 0 0 0
2500 0 ▶ E_8(encoded, offset, p->priority);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, p->priority); 0 0 0
2501 0 offset++;
2502 }
2503 0 ▶ if (flags & AMQP_BASIC_CORRELATION_ID_FLAG) {
Branch: 1 branch
BranchTrueFalseTotal
if (flags & AMQP_BASIC_CORRELATION_ID_FLAG) { 0 0 0
2504 0 ▶ E_8(encoded, offset, p->correlation_id.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, p->correlation_id.len); 0 0 0
2505 0 offset++;
2506 0 ▶ E_BYTES(encoded, offset, p->correlation_id.len, p->correlation_id.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, p->correlation_id.len, p->correlation_id.bytes); 0 0 0
2507 0 offset += p->correlation_id.len;
2508 }
2509 0 ▶ if (flags & AMQP_BASIC_REPLY_TO_FLAG) {
Branch: 1 branch
BranchTrueFalseTotal
if (flags & AMQP_BASIC_REPLY_TO_FLAG) { 0 0 0
2510 0 ▶ E_8(encoded, offset, p->reply_to.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, p->reply_to.len); 0 0 0
2511 0 offset++;
2512 0 ▶ E_BYTES(encoded, offset, p->reply_to.len, p->reply_to.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, p->reply_to.len, p->reply_to.bytes); 0 0 0
2513 0 offset += p->reply_to.len;
2514 }
2515 0 ▶ if (flags & AMQP_BASIC_EXPIRATION_FLAG) {
Branch: 1 branch
BranchTrueFalseTotal
if (flags & AMQP_BASIC_EXPIRATION_FLAG) { 0 0 0
2516 0 ▶ E_8(encoded, offset, p->expiration.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, p->expiration.len); 0 0 0
2517 0 offset++;
2518 0 ▶ E_BYTES(encoded, offset, p->expiration.len, p->expiration.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, p->expiration.len, p->expiration.bytes); 0 0 0
2519 0 offset += p->expiration.len;
2520 }
2521 0 ▶ if (flags & AMQP_BASIC_MESSAGE_ID_FLAG) {
Branch: 1 branch
BranchTrueFalseTotal
if (flags & AMQP_BASIC_MESSAGE_ID_FLAG) { 0 0 0
2522 0 ▶ E_8(encoded, offset, p->message_id.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, p->message_id.len); 0 0 0
2523 0 offset++;
2524 0 ▶ E_BYTES(encoded, offset, p->message_id.len, p->message_id.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, p->message_id.len, p->message_id.bytes); 0 0 0
2525 0 offset += p->message_id.len;
2526 }
2527 0 ▶ if (flags & AMQP_BASIC_TIMESTAMP_FLAG) {
Branch: 1 branch
BranchTrueFalseTotal
if (flags & AMQP_BASIC_TIMESTAMP_FLAG) { 0 0 0
2528 0 ▶ E_64(encoded, offset, p->timestamp);
Branch: 2 branches
BranchTrueFalseTotal
E_64(encoded, offset, p->timestamp); 0 0 0
E_64(encoded, offset, p->timestamp); 0 0 0
2529 0 offset += 8;
2530 }
2531 0 ▶ if (flags & AMQP_BASIC_TYPE_FLAG) {
Branch: 1 branch
BranchTrueFalseTotal
if (flags & AMQP_BASIC_TYPE_FLAG) { 0 0 0
2532 0 ▶ E_8(encoded, offset, p->type.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, p->type.len); 0 0 0
2533 0 offset++;
2534 0 ▶ E_BYTES(encoded, offset, p->type.len, p->type.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, p->type.len, p->type.bytes); 0 0 0
2535 0 offset += p->type.len;
2536 }
2537 0 ▶ if (flags & AMQP_BASIC_USER_ID_FLAG) {
Branch: 1 branch
BranchTrueFalseTotal
if (flags & AMQP_BASIC_USER_ID_FLAG) { 0 0 0
2538 0 ▶ E_8(encoded, offset, p->user_id.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, p->user_id.len); 0 0 0
2539 0 offset++;
2540 0 ▶ E_BYTES(encoded, offset, p->user_id.len, p->user_id.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, p->user_id.len, p->user_id.bytes); 0 0 0
2541 0 offset += p->user_id.len;
2542 }
2543 0 ▶ if (flags & AMQP_BASIC_APP_ID_FLAG) {
Branch: 1 branch
BranchTrueFalseTotal
if (flags & AMQP_BASIC_APP_ID_FLAG) { 0 0 0
2544 0 ▶ E_8(encoded, offset, p->app_id.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, p->app_id.len); 0 0 0
2545 0 offset++;
2546 0 ▶ E_BYTES(encoded, offset, p->app_id.len, p->app_id.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, p->app_id.len, p->app_id.bytes); 0 0 0
2547 0 offset += p->app_id.len;
2548 }
2549 0 ▶ if (flags & AMQP_BASIC_CLUSTER_ID_FLAG) {
Branch: 1 branch
BranchTrueFalseTotal
if (flags & AMQP_BASIC_CLUSTER_ID_FLAG) { 0 0 0
2550 0 ▶ E_8(encoded, offset, p->cluster_id.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, p->cluster_id.len); 0 0 0
2551 0 offset++;
2552 0 ▶ E_BYTES(encoded, offset, p->cluster_id.len, p->cluster_id.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, p->cluster_id.len, p->cluster_id.bytes); 0 0 0
2553 0 offset += p->cluster_id.len;
2554 }
2555 0 return offset;
2556 }
2557 0 case 70: {
2558 0 amqp_file_properties_t *p = (amqp_file_properties_t *) decoded;
2559 0 ▶ if (flags & AMQP_FILE_CONTENT_TYPE_FLAG) {
Branch: 1 branch
BranchTrueFalseTotal
if (flags & AMQP_FILE_CONTENT_TYPE_FLAG) { 0 0 0
2560 0 ▶ E_8(encoded, offset, p->content_type.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, p->content_type.len); 0 0 0
2561 0 offset++;
2562 0 ▶ E_BYTES(encoded, offset, p->content_type.len, p->content_type.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, p->content_type.len, p->content_type.bytes); 0 0 0
2563 0 offset += p->content_type.len;
2564 }
2565 0 ▶ if (flags & AMQP_FILE_CONTENT_ENCODING_FLAG) {
Branch: 1 branch
BranchTrueFalseTotal
if (flags & AMQP_FILE_CONTENT_ENCODING_FLAG) { 0 0 0
2566 0 ▶ E_8(encoded, offset, p->content_encoding.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, p->content_encoding.len); 0 0 0
2567 0 offset++;
2568 0 ▶ E_BYTES(encoded, offset, p->content_encoding.len, p->content_encoding.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, p->content_encoding.len, p->content_encoding.bytes); 0 0 0
2569 0 offset += p->content_encoding.len;
2570 }
2571 0 ▶ if (flags & AMQP_FILE_HEADERS_FLAG) {
Branch: 1 branch
BranchTrueFalseTotal
if (flags & AMQP_FILE_HEADERS_FLAG) { 0 0 0
2572 0 table_result = amqp_encode_table(encoded, &(p->headers), &offset);
2573 0 ▶ if (table_result < 0) return table_result;
Branch: 1 branch
BranchTrueFalseTotal
if (table_result < 0) return table_result; 0 0 0
2574 }
2575 0 ▶ if (flags & AMQP_FILE_PRIORITY_FLAG) {
Branch: 1 branch
BranchTrueFalseTotal
if (flags & AMQP_FILE_PRIORITY_FLAG) { 0 0 0
2576 0 ▶ E_8(encoded, offset, p->priority);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, p->priority); 0 0 0
2577 0 offset++;
2578 }
2579 0 ▶ if (flags & AMQP_FILE_REPLY_TO_FLAG) {
Branch: 1 branch
BranchTrueFalseTotal
if (flags & AMQP_FILE_REPLY_TO_FLAG) { 0 0 0
2580 0 ▶ E_8(encoded, offset, p->reply_to.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, p->reply_to.len); 0 0 0
2581 0 offset++;
2582 0 ▶ E_BYTES(encoded, offset, p->reply_to.len, p->reply_to.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, p->reply_to.len, p->reply_to.bytes); 0 0 0
2583 0 offset += p->reply_to.len;
2584 }
2585 0 ▶ if (flags & AMQP_FILE_MESSAGE_ID_FLAG) {
Branch: 1 branch
BranchTrueFalseTotal
if (flags & AMQP_FILE_MESSAGE_ID_FLAG) { 0 0 0
2586 0 ▶ E_8(encoded, offset, p->message_id.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, p->message_id.len); 0 0 0
2587 0 offset++;
2588 0 ▶ E_BYTES(encoded, offset, p->message_id.len, p->message_id.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, p->message_id.len, p->message_id.bytes); 0 0 0
2589 0 offset += p->message_id.len;
2590 }
2591 0 ▶ if (flags & AMQP_FILE_FILENAME_FLAG) {
Branch: 1 branch
BranchTrueFalseTotal
if (flags & AMQP_FILE_FILENAME_FLAG) { 0 0 0
2592 0 ▶ E_8(encoded, offset, p->filename.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, p->filename.len); 0 0 0
2593 0 offset++;
2594 0 ▶ E_BYTES(encoded, offset, p->filename.len, p->filename.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, p->filename.len, p->filename.bytes); 0 0 0
2595 0 offset += p->filename.len;
2596 }
2597 0 ▶ if (flags & AMQP_FILE_TIMESTAMP_FLAG) {
Branch: 1 branch
BranchTrueFalseTotal
if (flags & AMQP_FILE_TIMESTAMP_FLAG) { 0 0 0
2598 0 ▶ E_64(encoded, offset, p->timestamp);
Branch: 2 branches
BranchTrueFalseTotal
E_64(encoded, offset, p->timestamp); 0 0 0
E_64(encoded, offset, p->timestamp); 0 0 0
2599 0 offset += 8;
2600 }
2601 0 ▶ if (flags & AMQP_FILE_CLUSTER_ID_FLAG) {
Branch: 1 branch
BranchTrueFalseTotal
if (flags & AMQP_FILE_CLUSTER_ID_FLAG) { 0 0 0
2602 0 ▶ E_8(encoded, offset, p->cluster_id.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, p->cluster_id.len); 0 0 0
2603 0 offset++;
2604 0 ▶ E_BYTES(encoded, offset, p->cluster_id.len, p->cluster_id.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, p->cluster_id.len, p->cluster_id.bytes); 0 0 0
2605 0 offset += p->cluster_id.len;
2606 }
2607 0 return offset;
2608 }
2609 0 case 80: {
2610 0 amqp_stream_properties_t *p = (amqp_stream_properties_t *) decoded;
2611 0 ▶ if (flags & AMQP_STREAM_CONTENT_TYPE_FLAG) {
Branch: 1 branch
BranchTrueFalseTotal
if (flags & AMQP_STREAM_CONTENT_TYPE_FLAG) { 0 0 0
2612 0 ▶ E_8(encoded, offset, p->content_type.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, p->content_type.len); 0 0 0
2613 0 offset++;
2614 0 ▶ E_BYTES(encoded, offset, p->content_type.len, p->content_type.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, p->content_type.len, p->content_type.bytes); 0 0 0
2615 0 offset += p->content_type.len;
2616 }
2617 0 ▶ if (flags & AMQP_STREAM_CONTENT_ENCODING_FLAG) {
Branch: 1 branch
BranchTrueFalseTotal
if (flags & AMQP_STREAM_CONTENT_ENCODING_FLAG) { 0 0 0
2618 0 ▶ E_8(encoded, offset, p->content_encoding.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, p->content_encoding.len); 0 0 0
2619 0 offset++;
2620 0 ▶ E_BYTES(encoded, offset, p->content_encoding.len, p->content_encoding.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, p->content_encoding.len, p->content_encoding.bytes); 0 0 0
2621 0 offset += p->content_encoding.len;
2622 }
2623 0 ▶ if (flags & AMQP_STREAM_HEADERS_FLAG) {
Branch: 1 branch
BranchTrueFalseTotal
if (flags & AMQP_STREAM_HEADERS_FLAG) { 0 0 0
2624 0 table_result = amqp_encode_table(encoded, &(p->headers), &offset);
2625 0 ▶ if (table_result < 0) return table_result;
Branch: 1 branch
BranchTrueFalseTotal
if (table_result < 0) return table_result; 0 0 0
2626 }
2627 0 ▶ if (flags & AMQP_STREAM_PRIORITY_FLAG) {
Branch: 1 branch
BranchTrueFalseTotal
if (flags & AMQP_STREAM_PRIORITY_FLAG) { 0 0 0
2628 0 ▶ E_8(encoded, offset, p->priority);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, p->priority); 0 0 0
2629 0 offset++;
2630 }
2631 0 ▶ if (flags & AMQP_STREAM_TIMESTAMP_FLAG) {
Branch: 1 branch
BranchTrueFalseTotal
if (flags & AMQP_STREAM_TIMESTAMP_FLAG) { 0 0 0
2632 0 ▶ E_64(encoded, offset, p->timestamp);
Branch: 2 branches
BranchTrueFalseTotal
E_64(encoded, offset, p->timestamp); 0 0 0
E_64(encoded, offset, p->timestamp); 0 0 0
2633 0 offset += 8;
2634 }
2635 0 return offset;
2636 }
2637 0 case 90: {
2638 0 return offset;
2639 }
2640 0 case 100: {
2641 0 return offset;
2642 }
2643 0 case 110: {
2644 0 amqp_tunnel_properties_t *p = (amqp_tunnel_properties_t *) decoded;
2645 0 ▶ if (flags & AMQP_TUNNEL_HEADERS_FLAG) {
Branch: 1 branch
BranchTrueFalseTotal
if (flags & AMQP_TUNNEL_HEADERS_FLAG) { 0 0 0
2646 0 table_result = amqp_encode_table(encoded, &(p->headers), &offset);
2647 0 ▶ if (table_result < 0) return table_result;
Branch: 1 branch
BranchTrueFalseTotal
if (table_result < 0) return table_result; 0 0 0
2648 }
2649 0 ▶ if (flags & AMQP_TUNNEL_PROXY_NAME_FLAG) {
Branch: 1 branch
BranchTrueFalseTotal
if (flags & AMQP_TUNNEL_PROXY_NAME_FLAG) { 0 0 0
2650 0 ▶ E_8(encoded, offset, p->proxy_name.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, p->proxy_name.len); 0 0 0
2651 0 offset++;
2652 0 ▶ E_BYTES(encoded, offset, p->proxy_name.len, p->proxy_name.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, p->proxy_name.len, p->proxy_name.bytes); 0 0 0
2653 0 offset += p->proxy_name.len;
2654 }
2655 0 ▶ if (flags & AMQP_TUNNEL_DATA_NAME_FLAG) {
Branch: 1 branch
BranchTrueFalseTotal
if (flags & AMQP_TUNNEL_DATA_NAME_FLAG) { 0 0 0
2656 0 ▶ E_8(encoded, offset, p->data_name.len);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, p->data_name.len); 0 0 0
2657 0 offset++;
2658 0 ▶ E_BYTES(encoded, offset, p->data_name.len, p->data_name.bytes);
Branch: 1 branch
BranchTrueFalseTotal
E_BYTES(encoded, offset, p->data_name.len, p->data_name.bytes); 0 0 0
2659 0 offset += p->data_name.len;
2660 }
2661 0 ▶ if (flags & AMQP_TUNNEL_DURABLE_FLAG) {
Branch: 1 branch
BranchTrueFalseTotal
if (flags & AMQP_TUNNEL_DURABLE_FLAG) { 0 0 0
2662 0 ▶ E_8(encoded, offset, p->durable);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, p->durable); 0 0 0
2663 0 offset++;
2664 }
2665 0 ▶ if (flags & AMQP_TUNNEL_BROADCAST_FLAG) {
Branch: 1 branch
BranchTrueFalseTotal
if (flags & AMQP_TUNNEL_BROADCAST_FLAG) { 0 0 0
2666 0 ▶ E_8(encoded, offset, p->broadcast);
Branch: 1 branch
BranchTrueFalseTotal
E_8(encoded, offset, p->broadcast); 0 0 0
2667 0 offset++;
2668 }
2669 0 return offset;
2670 }
2671 0 case 120: {
2672 0 return offset;
2673 }
2674 0 default: return -ENOENT;
2675 }
2676 }
« amqp_debug.c ↑ Summary amqp_socket.c »