Home
last modified time | relevance | path

Searched refs:tmplen (Results 1 – 3 of 3) sorted by relevance

/AliOS-Things-master/components/csi/csi1/src/
A Ddev_ringbuf.c86 uint32_t writelen = 0, tmplen = 0; in dev_ringbuf_in() local
91 tmplen = fifo->size - fifo->data_len; in dev_ringbuf_in()
92 writelen = tmplen > len ? len : tmplen; in dev_ringbuf_in()
97 tmplen = fifo->size - fifo->write; in dev_ringbuf_in()
98 if(writelen <= tmplen) { in dev_ringbuf_in()
102 memcpy((void*)fifo->buffer, (uint8_t*)datptr + tmplen, writelen - tmplen); in dev_ringbuf_in()
125 uint32_t readlen = 0, tmplen = 0; in dev_ringbuf_out() local
131 tmplen = fifo->size - fifo->read; in dev_ringbuf_out()
134 if(readlen <= tmplen) { in dev_ringbuf_out()
137 memcpy((void*)outbuf,(void*)&fifo->buffer[fifo->read], tmplen); in dev_ringbuf_out()
[all …]
/AliOS-Things-master/components/linkkit/dev_model/alcs/
A Dalcs_client.c34 int tmplen; in res_parse() local
43 backup_json_str_last_char(tmp, tmplen, back); in res_parse()
45 restore_json_str_last_char(tmp, tmplen, back); in res_parse()
52 backup_json_str_last_char(tmp, tmplen, back); in res_parse()
54 restore_json_str_last_char(tmp, tmplen, back); in res_parse()
57 if (tmp && tmplen) { in res_parse()
58 res_msg->msg = (char *)coap_malloc(tmplen); in res_parse()
59 memcpy(res_msg->msg, tmp, tmplen); in res_parse()
278 int tmplen; in auth_cb() local
282 &tmplen, NULL); in auth_cb()
[all …]
A Dalcs_server.c202 int tmplen; in alcs_rec_auth() local
233 json_get_value_by_name(data, datalen, "accessKey", &tmplen, NULL); in alcs_rec_auth()
234 COAP_INFO("accesskey:%.*s", tmplen, accesskey); in alcs_rec_auth()
236 if (!accesskey || tmplen != KEYPREFIX_LEN + 1 + 1 + KEYSEQ_LEN) { in alcs_rec_auth()
251 utils_hmac_sha1_base64(accesskey, tmplen, item->secret, in alcs_rec_auth()
271 sign = json_get_value_by_name(data, datalen, "sign", &tmplen, NULL); in alcs_rec_auth()
272 if (!sign || tmplen != calc_sign_len || in alcs_rec_auth()

Completed in 6 milliseconds