Home
last modified time | relevance | path

Searched refs:buffer_len (Results 1 – 25 of 29) sorted by relevance

12

/AliOS-Things-master/components/kv/src/
A Dkv_aos.c48 int aos_kv_get(const char *key, void *buffer, int *buffer_len) in aos_kv_get() argument
50 return _kv_to_aos_res(kv_item_get(key, buffer, (int32_t *)buffer_len)); in aos_kv_get()
68 int aos_kv_secure_get(const char *key, void *buffer, int *buffer_len) in aos_kv_secure_get() argument
70 return _kv_to_aos_res(kv_item_secure_get(key, buffer, (int32_t *)buffer_len)); in aos_kv_secure_get()
A Dkv.c908 int32_t kv_item_get(const char *key, void *buffer, int32_t *buffer_len) in kv_item_get() argument
913 return kv_item_secure_get(key, buffer, buffer_len); in kv_item_get()
916 if (!key || !buffer || !buffer_len || (*buffer_len <= 0)) { in kv_item_get()
932 if (*buffer_len < item->hdr.val_len) { in kv_item_get()
933 *buffer_len = item->hdr.val_len; in kv_item_get()
938 *buffer_len = item->hdr.val_len; in kv_item_get()
1041 int32_t kv_item_secure_get(const char *key, void *buffer, int32_t *buffer_len) in kv_item_secure_get() argument
1048 if (!key || !buffer || !buffer_len || (*buffer_len <= 0)) { in kv_item_secure_get()
1064 if (*buffer_len < item->hdr.val_len) { in kv_item_secure_get()
1065 *buffer_len = item->hdr.val_len; in kv_item_secure_get()
[all …]
/AliOS-Things-master/components/linkkit/dev_model/
A Ddm_fota.c202 int dm_fota_request_image(const char *version, int buffer_len) in dm_fota_request_image() argument
208 if (NULL == version || buffer_len <= 0) { in dm_fota_request_image()
219 version_str = DM_malloc(buffer_len + 1); in dm_fota_request_image()
224 memset(version_str, 0, buffer_len + 1); in dm_fota_request_image()
225 memcpy(version_str, version, buffer_len); in dm_fota_request_image()
A Ddm_fota.h16 int dm_fota_request_image(_IN_ const char *version, _IN_ int buffer_len);
A Diotx_dm.h227 int iotx_dm_cota_perform_sync(_OU_ char *buffer, _IN_ int buffer_len);
230 int iotx_dm_fota_perform_sync(_OU_ char *buffer, _IN_ int buffer_len);
231 int iotx_dm_fota_request_image(_IN_ const char *version, _IN_ int buffer_len);
A Ddm_api.c611 int iotx_dm_cota_perform_sync(_OU_ char *buffer, _IN_ int buffer_len) in iotx_dm_cota_perform_sync() argument
614 return dm_cota_perform_sync(buffer, buffer_len); in iotx_dm_cota_perform_sync()
630 int iotx_dm_fota_perform_sync(_OU_ char *buffer, _IN_ int buffer_len) in iotx_dm_fota_perform_sync() argument
633 return dm_fota_perform_sync(buffer, buffer_len); in iotx_dm_fota_perform_sync()
639 int iotx_dm_fota_request_image(const char *version, int buffer_len) in iotx_dm_fota_request_image() argument
642 return dm_fota_request_image(version, buffer_len); in iotx_dm_fota_request_image()
/AliOS-Things-master/components/kv/include/aos/
A Dkv.h58 int aos_kv_get(const char *key, void *buffer, int *buffer_len);
103 int aos_kv_secure_get(const char *key, void *buffer, int *buffer_len);
/AliOS-Things-master/components/kv/internal/
A Dkv.h60 int aos_kv_get(const char *key, void *buffer, int *buffer_len);
105 int aos_kv_secure_get(const char *key, void *buffer, int *buffer_len);
/AliOS-Things-master/components/amp_adapter/platform/aos/peripheral/
A Daos_hal_flash.c14 int32_t aos_hal_flash_read(hal_partition_t id, uint32_t *offset, void *buffer, uint32_t buffer_len) in aos_hal_flash_read() argument
19 … aos_hal_flash_write(hal_partition_t id, uint32_t *offset, const void *buffer, uint32_t buffer_len) in aos_hal_flash_write() argument
/AliOS-Things-master/components/amp_adapter/platform/linux/
A Daos_kv.c32 int aos_kv_get(const char *key, void *buffer, int *buffer_len) in aos_kv_get() argument
39 fread(buffer, *buffer_len, 1, fp); in aos_kv_get()
/AliOS-Things-master/components/kv/include/
A Dkv_api.h70 int32_t kv_item_get(const char *key, void *buffer, int32_t *buffer_len);
114 int32_t kv_item_secure_get(const char *key, void *buffer, int32_t *buffer_len);
/AliOS-Things-master/components/linkkit/wrappers/os/
A Ddns.c131 int dns_response_message(uint8_t buffer[1024], uint32_t buffer_len, in dns_response_message() argument
145 if (idx >= buffer_len) { in dns_response_message()
154 while (idx < buffer_len) { in dns_response_message()
161 if (idx >= buffer_len) { in dns_response_message()
A DHAL_OS_rhino.c273 int HAL_Kv_Get(const char *key, void *buffer, int *buffer_len) in HAL_Kv_Get() argument
276 ret = aos_kv_get(key, buffer, buffer_len); in HAL_Kv_Get()
/AliOS-Things-master/components/linksdk/core/utils/
A Dcore_string.c174 uint32_t buffer_len = 0; in core_sprintf() local
176 buffer_len += strlen(fmt) - 2 * count; in core_sprintf()
179 buffer_len += strlen(value); in core_sprintf()
182 buffer = sysdep->core_sysdep_malloc(buffer_len + 1, module_name); in core_sprintf()
186 memset(buffer, 0, buffer_len + 1); in core_sprintf()
A Dcore_http.c521 uint32_t remaining_len = 0, buffer_len = 0; in _core_http_recv_body() local
538buffer_len = (remaining_len < http_handle->body_buffer_max_len) ? (remaining_len) : (http_handle->… in _core_http_recv_body()
540 buffer = http_handle->sysdep->core_sysdep_malloc(buffer_len, CORE_HTTP_MODULE_NAME); in _core_http_recv_body()
544 memset(buffer, 0, buffer_len); in _core_http_recv_body()
547 res = _core_http_recv(http_handle, (uint8_t *)buffer, buffer_len, http_handle->recv_timeout_ms); in _core_http_recv_body()
/AliOS-Things-master/components/linkkit/include/linkkit/wrappers/
A Dwrappers_kv.h8 int HAL_Kv_Get(const char *key, void *val, int *buffer_len);
/AliOS-Things-master/hardware/chip/haas1000/drivers/services/bridge/
A Dbridge.h17 uint16_t buffer_len; member
/AliOS-Things-master/components/linksdk/components/ota/
A Daiot_ota_api.c27 … _download_digest_update(download_handle_t *download_handle, uint8_t *buffer, uint32_t buffer_len);
899 …t _download_digest_update(download_handle_t *download_handle, uint8_t *buffer, uint32_t buffer_len) in _download_digest_update() argument
903 core_sha256_update(download_handle->digest_ctx, buffer, buffer_len); in _download_digest_update()
905 res = utils_md5_update(download_handle->digest_ctx, buffer, buffer_len); in _download_digest_update()
1174 uint32_t value_len = 0, buffer_len = 0; in _ota_parse_json() local
1180 buffer_len = value_len + 1; in _ota_parse_json()
1181 buffer = sysdep->core_sysdep_malloc(buffer_len, OTA_MODULE_NAME); in _ota_parse_json()
1185 memset(buffer, 0, buffer_len); in _ota_parse_json()
/AliOS-Things-master/components/SDL2/src/hidapi/windows/
A Dhid.c140 …ef BOOLEAN (__stdcall *HidD_GetSerialNumberString_)(HANDLE device, PVOID buffer, ULONG buffer_len);
141 …ef BOOLEAN (__stdcall *HidD_GetManufacturerString_)(HANDLE handle, PVOID buffer, ULONG buffer_len);
142 typedef BOOLEAN (__stdcall *HidD_GetProductString_)(HANDLE handle, PVOID buffer, ULONG buffer_len);
145 …tdcall *HidD_GetIndexedString_)(HANDLE handle, ULONG string_index, PVOID buffer, ULONG buffer_len);
150 typedef BOOLEAN(__stdcall *HidD_SetOutputReport_ )(HANDLE handle, PVOID buffer, ULONG buffer_len);
/AliOS-Things-master/components/linkkit/dev_model/alcs/
A Dalcs_localsetup.c40 int *buffer_len) in __alcs_localsetup_kv_get() argument
44 rc = HAL_Kv_Get(key, buffer, buffer_len); in __alcs_localsetup_kv_get()
/AliOS-Things-master/components/linksdk/components/task/
A Daiot_task_api.c83 uint32_t value_len = 0, buffer_len = 0; in _task_parse_json() local
89 buffer_len = value_len + 1; in _task_parse_json()
90 buffer = sysdep->core_sysdep_malloc(buffer_len, TASK_MODULE_NAME); in _task_parse_json()
94 memset(buffer, 0, buffer_len); in _task_parse_json()
/AliOS-Things-master/hardware/chip/haas1000/drivers/services/norflash_api/
A Dnorflash_api.h146 uint32_t buffer_len,
/AliOS-Things-master/components/lwip/lwip2.0.0/apps/iperf/
A Diperf_task.c95 int32_t buffer_len; member
309 client_h_trans.buffer_len = (int32_t)(ntohl(client_h->buffer_len)); in iperf_udp_run_server()
320 …flags, client_h_trans.num_threads, client_h_trans.port, client_h_trans.buffer_len, client_h_trans.… in iperf_udp_run_server()
985 client_h->buffer_len = 0; in iperf_udp_run_client()
/AliOS-Things-master/components/py_engine/framework/
A Dst7789py.py830 buffer_len = bitmap_size * 2
831 buffer = bytearray(buffer_len)
834 for i in range(0, buffer_len, 2):
866 buffer_len = font.HEIGHT * font.MAX_WIDTH * 2
867 buffer = bytearray(buffer_len)
/AliOS-Things-master/components/linkkit/wrappers/platform/os/
A DHAL_OS_yoc.c41 int HAL_Kv_Get(const char *key, void *buffer, int *buffer_len) in HAL_Kv_Get() argument
43 return aos_kv_get(key, buffer, buffer_len); in HAL_Kv_Get()

Completed in 45 milliseconds

12