• Home
  • Raw
  • Download

Lines Matching refs:offset

75    msgpack->offset = 0;  in ac_msgpack_init()
86 if ((msgpack->offset + data_size) > msgpack->mem_size) { in ac_msgpack_resize_if_required()
106 msgpack->mem[msgpack->offset] = MSGPACK_FIXMAP_OP | n; in ac_msgpack_add_fixmap_op()
107 msgpack->offset = msgpack->offset + 1; in ac_msgpack_add_fixmap_op()
111 msgpack->mem[msgpack->offset] = MSGPACK_MAP16_OP; in ac_msgpack_add_fixmap_op()
112 *((uint16_t*)&msgpack->mem[msgpack->offset + 1]) = util_bswap16(n); in ac_msgpack_add_fixmap_op()
113 msgpack->offset = msgpack->offset + 3; in ac_msgpack_add_fixmap_op()
117 msgpack->mem[msgpack->offset] = MSGPACK_MAP32_OP; in ac_msgpack_add_fixmap_op()
118 *((unsigned int*)&msgpack->mem[msgpack->offset + 1]) = util_bswap32(n); in ac_msgpack_add_fixmap_op()
119 msgpack->offset = msgpack->offset + 5; in ac_msgpack_add_fixmap_op()
128 msgpack->mem[msgpack->offset] = MSGPACK_FIXARRAY_OP | n; in ac_msgpack_add_fixarray_op()
129 msgpack->offset = msgpack->offset + 1; in ac_msgpack_add_fixarray_op()
133 msgpack->mem[msgpack->offset] = MSGPACK_ARRAY16_OP; in ac_msgpack_add_fixarray_op()
134 *((uint16_t*)&msgpack->mem[msgpack->offset + 1]) = util_bswap16(n); in ac_msgpack_add_fixarray_op()
135 msgpack->offset = msgpack->offset + 3; in ac_msgpack_add_fixarray_op()
139 msgpack->mem[msgpack->offset] = MSGPACK_ARRAY32_OP; in ac_msgpack_add_fixarray_op()
140 *((uint32_t*)&msgpack->mem[msgpack->offset + 1]) = util_bswap32(n); in ac_msgpack_add_fixarray_op()
141 msgpack->offset = msgpack->offset + 5; in ac_msgpack_add_fixarray_op()
154 msgpack->mem[msgpack->offset] = MSGPACK_FIXSTR_OP | n; in ac_msgpack_add_fixstr()
155 msgpack->offset = msgpack->offset + 1; in ac_msgpack_add_fixstr()
159 msgpack->mem[msgpack->offset] = MSGPACK_STR8_OP; in ac_msgpack_add_fixstr()
160 msgpack->mem[msgpack->offset + 1] = n; in ac_msgpack_add_fixstr()
161 msgpack->offset = msgpack->offset + 2; in ac_msgpack_add_fixstr()
165 msgpack->mem[msgpack->offset] = MSGPACK_STR16_OP; in ac_msgpack_add_fixstr()
166 *((uint16_t*)&msgpack->mem[msgpack->offset + 1]) = util_bswap16(n); in ac_msgpack_add_fixstr()
167 msgpack->offset = msgpack->offset + 3; in ac_msgpack_add_fixstr()
171 msgpack->mem[msgpack->offset] = MSGPACK_STR32_OP; in ac_msgpack_add_fixstr()
172 *((uint32_t*)&msgpack->mem[msgpack->offset + 1]) = util_bswap32(n); in ac_msgpack_add_fixstr()
173 msgpack->offset = msgpack->offset + 5; in ac_msgpack_add_fixstr()
176 memcpy (&msgpack->mem[msgpack->offset], str, n); in ac_msgpack_add_fixstr()
177 msgpack->offset = msgpack->offset + n; in ac_msgpack_add_fixstr()
185 msgpack->mem[msgpack->offset] = val; in ac_msgpack_add_uint()
186 msgpack->offset = msgpack->offset + 1; in ac_msgpack_add_uint()
190 msgpack->mem[msgpack->offset] = MSGPACK_UINT8_OP; in ac_msgpack_add_uint()
191 msgpack->mem[msgpack->offset + 1] = val; in ac_msgpack_add_uint()
192 msgpack->offset = msgpack->offset + 2; in ac_msgpack_add_uint()
196 msgpack->mem[msgpack->offset] = MSGPACK_UINT16_OP; in ac_msgpack_add_uint()
197 *((uint16_t*)&msgpack->mem[msgpack->offset + 1]) = util_bswap16(val); in ac_msgpack_add_uint()
198 msgpack->offset = msgpack->offset + 3; in ac_msgpack_add_uint()
202 msgpack->mem[msgpack->offset] = MSGPACK_UINT32_OP; in ac_msgpack_add_uint()
203 *((uint32_t*)&msgpack->mem[msgpack->offset + 1]) = util_bswap32(val); in ac_msgpack_add_uint()
204 msgpack->offset = msgpack->offset + 5; in ac_msgpack_add_uint()
208 msgpack->mem[msgpack->offset] = MSGPACK_UINT64_OP; in ac_msgpack_add_uint()
209 *((uint64_t*)&msgpack->mem[msgpack->offset + 1]) = util_bswap64(val); in ac_msgpack_add_uint()
210 msgpack->offset = msgpack->offset + 9; in ac_msgpack_add_uint()
220 msgpack->mem[msgpack->offset] = val | MSGPACK_NIL_OP; in ac_msgpack_add_int()
221 msgpack->offset = msgpack->offset + 1; in ac_msgpack_add_int()
225 msgpack->mem[msgpack->offset] = val; in ac_msgpack_add_int()
226 msgpack->offset = msgpack->offset + 1; in ac_msgpack_add_int()
230 msgpack->mem[msgpack->offset] = MSGPACK_INT8_OP; in ac_msgpack_add_int()
231 msgpack->mem[msgpack->offset + 1] = val; in ac_msgpack_add_int()
232 msgpack->offset = msgpack->offset + 2; in ac_msgpack_add_int()
237 msgpack->mem[msgpack->offset] = MSGPACK_INT16_OP; in ac_msgpack_add_int()
238 *((int16_t*)&msgpack->mem[msgpack->offset + 1]) = util_bswap32(val); in ac_msgpack_add_int()
239 msgpack->offset = msgpack->offset + 3; in ac_msgpack_add_int()
243 msgpack->mem[msgpack->offset] = MSGPACK_INT32_OP; in ac_msgpack_add_int()
244 *((int32_t*)&msgpack->mem[msgpack->offset + 1]) = util_bswap32(val); in ac_msgpack_add_int()
245 msgpack->offset = msgpack->offset + 5; in ac_msgpack_add_int()
249 msgpack->mem[msgpack->offset] = MSGPACK_INT64_OP; in ac_msgpack_add_int()
250 *((int64_t*)&msgpack->mem[msgpack->offset + 1]) = util_bswap64(val); in ac_msgpack_add_int()
251 msgpack->offset = msgpack->offset + 9; in ac_msgpack_add_int()