Home
last modified time | relevance | path

Searched refs:value_len (Results 1 – 15 of 15) sorted by relevance

/Zephyr-latest/subsys/net/lib/http/
Dhttp_hpack.c118 strlen(entry->value) == header->value_len && in http_hpack_find_index()
119 memcmp(entry->value, header->value, header->value_len) == 0) { in http_hpack_find_index()
230 header->value_len = ret; in hpack_huffman_decode()
280 header->value_len = str_len; in hpack_string_decode()
318 header->value_len = strlen(entry->value); in hpack_handle_indexed()
502 str_len = header->value_len; in hpack_string_encode()
612 header->value == NULL || header->value_len == 0) { in http_hpack_encode_header()
Dhttp_server_http2.c117 client->header_field.value_len = strlen(value); in add_header_field()
1224 required_len = hdr_buf->name_len + hdr_buf->value_len + 2; in check_user_request_headers_http2()
1251 memcpy(dest, hdr_buf->value, hdr_buf->value_len); in check_user_request_headers_http2()
1252 dest[hdr_buf->value_len] = '\0'; in check_user_request_headers_http2()
1254 ctx->cursor += (hdr_buf->value_len + 1); in check_user_request_headers_http2()
1276 if ((header->value_len == in process_header()
1280 header->value_len) == 0)) { in process_header()
1290 if (header->value_len > sizeof(client->url_buffer) - 1) { in process_header()
1295 memcpy(client->url_buffer, header->value, header->value_len); in process_header()
1296 client->url_buffer[header->value_len] = '\0'; in process_header()
[all …]
Dhttp_server_http1.c639 size_t value_len; in populate_user_request_header() local
647 value_len = strlen(buf); in populate_user_request_header()
650 if (value_len + 1 >= remaining) { in populate_user_request_header()
659 ctx->cursor += (value_len + 1); in populate_user_request_header()
/Zephyr-latest/doc/connectivity/bluetooth/shell/audio/
Dbap.rst445 data #0: type 0x01 value_len 1
447 data #1: type 0x02 value_len 1
449 data #2: type 0x03 value_len 4
451 data #3: type 0x04 value_len 2
453 meta #0: type 0x02 value_len 2
460 data #0: type 0x01 value_len 1
462 data #1: type 0x02 value_len 1
464 data #2: type 0x03 value_len 4
466 data #3: type 0x04 value_len 2
468 meta #0: type 0x02 value_len 2
[all …]
/Zephyr-latest/tests/net/lib/http_server/hpack/src/
Dmain.c256 .value_len = strlen(example[i].value) in test_hpack_verify_encode()
278 zassert_equal(hdr.value_len, strlen(example[i].value), in test_hpack_verify_decode()
282 zassert_mem_equal(hdr.value, example[i].value, hdr.value_len, in test_hpack_verify_decode()
/Zephyr-latest/include/zephyr/net/http/
Dhpack.h121 size_t value_len; member
/Zephyr-latest/subsys/bluetooth/audio/
Dcodec.c136 const uint8_t value_len = *len - sizeof(data_type); in ltv_set_val() local
141 if (data_len == value_len) { in ltv_set_val()
144 const int16_t diff = data_len - value_len; in ltv_set_val()
150 if (value + value_len == buf->data + buf->len) { in ltv_set_val()
153 old_next_data_start = value + value_len; in ltv_set_val()
194 i += value_len; in ltv_set_val()
220 const uint8_t value_len = len - sizeof(data_type); in ltv_unset_val() local
223 const uint8_t ltv_size = value_len + sizeof(data_type) + sizeof(len); in ltv_unset_val()
227 if (value + value_len != buf->data + buf->len) { in ltv_unset_val()
231 next_data_start = value + value_len; in ltv_unset_val()
[all …]
/Zephyr-latest/drivers/bluetooth/hci/
Dhci_spi_st.c326 static int bt_spi_send_aci_config(uint8_t offset, const uint8_t *value, size_t value_len) in bt_spi_send_aci_config() argument
330 size_t data_len = 2 + value_len; in bt_spi_send_aci_config()
347 cmd_data[1] = value_len; in bt_spi_send_aci_config()
348 memcpy(&cmd_data[2], value, value_len); in bt_spi_send_aci_config()
/Zephyr-latest/tests/bluetooth/audio/mocks/src/
Dgatt.c466 const void *value, uint16_t value_len) in bt_gatt_attr_read() argument
470 if (offset > value_len) { in bt_gatt_attr_read()
474 len = MIN(buf_len, value_len - offset); in bt_gatt_attr_read()
/Zephyr-latest/subsys/bluetooth/host/
Dgatt.c1802 const void *value, uint16_t value_len) in bt_gatt_attr_read() argument
1806 if (offset > value_len) { in bt_gatt_attr_read()
1810 if (value_len != 0U && value == NULL) { in bt_gatt_attr_read()
1811 LOG_WRN("value_len of %u provided for NULL value", value_len); in bt_gatt_attr_read()
1816 if (value_len == 0U) { in bt_gatt_attr_read()
1819 len = MIN(buf_len, value_len - offset); in bt_gatt_attr_read()
1905 uint8_t value_len; in bt_gatt_attr_read_included() local
1909 value_len = sizeof(pdu.start_handle) + sizeof(pdu.end_handle); in bt_gatt_attr_read_included()
1918 value_len += sizeof(pdu.uuid16); in bt_gatt_attr_read_included()
1924 return bt_gatt_attr_read(conn, attr, buf, len, offset, &pdu, value_len); in bt_gatt_attr_read_included()
[all …]
Datt.c1133 uint8_t value_len; member
1196 if (read != data->value_len) { in find_type_cb()
1201 if (!bt_uuid_create(&recvd_uuid.uuid, data->value, data->value_len)) { in find_type_cb()
1202 LOG_WRN("Unable to create UUID: size %u", data->value_len); in find_type_cb()
1234 uint8_t value_len) in att_find_type_rsp() argument
1248 data.value_len = value_len; in att_find_type_rsp()
/Zephyr-latest/subsys/bluetooth/host/shell/
Dgatt.c1099 uint16_t value_len; in read_met() local
1101 value_len = MIN(strlen(value), BT_ATT_MAX_ATTRIBUTE_LEN); in read_met()
1104 value_len); in read_met()
/Zephyr-latest/subsys/bluetooth/host/classic/
Drfcomm.c1168 uint8_t value_len = buf->len - 1; in rfcomm_handle_rpn() local
1177 if (value_len == sizeof(*rpn)) { in rfcomm_handle_rpn()
1184 if (value_len != 1U) { in rfcomm_handle_rpn()
/Zephyr-latest/include/zephyr/bluetooth/
Dgatt.h745 const void *value, uint16_t value_len);
/Zephyr-latest/tests/net/lib/http_server/core/src/
Dmain.c628 strncasecmp(header_buf.value, header->value, header_buf.value_len) == 0) { in expect_contains_header()