Lines Matching refs:in
179 static int plain_text_read_int(struct lwm2m_input_context *in, int64_t *value, in plain_text_read_int() argument
186 if (in->offset >= in->in_cpkt->offset) { in plain_text_read_int()
194 while (in->offset < in->in_cpkt->offset) { in plain_text_read_int()
195 if (buf_read_u8(&tmp, CPKT_BUF_READ(in->in_cpkt), in plain_text_read_int()
196 &in->offset) < 0) { in plain_text_read_int()
206 in->offset--; in plain_text_read_int()
220 static int get_s32(struct lwm2m_input_context *in, int32_t *value) in get_s32() argument
225 len = plain_text_read_int(in, &tmp, true); in get_s32()
233 static int get_s64(struct lwm2m_input_context *in, int64_t *value) in get_s64() argument
235 return plain_text_read_int(in, value, true); in get_s64()
238 static int get_time(struct lwm2m_input_context *in, time_t *value) in get_time() argument
243 ret = plain_text_read_int(in, &temp64, true); in get_time()
249 static int get_string(struct lwm2m_input_context *in, uint8_t *value, in get_string() argument
254 coap_packet_get_payload(in->in_cpkt, &in_len); in get_string()
261 if (buf_read(value, in_len, CPKT_BUF_READ(in->in_cpkt), in get_string()
262 &in->offset) < 0) { in get_string()
271 static int get_float(struct lwm2m_input_context *in, double *value) in get_float() argument
278 if (in->offset >= in->in_cpkt->offset) { in get_float()
283 while (in->offset < in->in_cpkt->offset) { in get_float()
284 if (buf_read_u8(&tmp, CPKT_BUF_READ(in->in_cpkt), in get_float()
285 &in->offset) < 0) { in get_float()
305 in->offset--; in get_float()
321 static int get_bool(struct lwm2m_input_context *in, bool *value) in get_bool() argument
326 if (in->offset >= in->in_cpkt->offset) { in get_bool()
331 ret = buf_read_u8(&tmp, CPKT_BUF_READ(in->in_cpkt), &in->offset); in get_bool()
344 static int get_objlnk(struct lwm2m_input_context *in, in get_objlnk() argument
350 len = plain_text_read_int(in, &tmp, false); in get_objlnk()
360 in->offset++; in get_objlnk()
362 len = plain_text_read_int(in, &tmp, false); in get_objlnk()