Download Evaluate/projects/deltachat-core/c/dc_array.h from SYSUSELab/RustRepoTrans: direct link, hf CLI and curl.
- Browser
- Download file 1.34 kB
-
https://huggingface.co/datasets/SYSUSELab/RustRepoTrans/resolve/main/Evaluate/projects/deltachat-core/c/dc_array.h
- Command line
-
hf download hf://datasets/SYSUSELab/RustRepoTrans/Evaluate/projects/deltachat-core/c/dc_array.h
-
curl -L -o dc_array.h https://huggingface.co/datasets/SYSUSELab/RustRepoTrans/resolve/main/Evaluate/projects/deltachat-core/c/dc_array.h
1.34 kB
| extern "C" { | |
| /** the structure behind dc_array_t */ | |
| struct _dc_array | |
| { | |
| /** @privatesection */ | |
| uint32_t magic; | |
| dc_context_t* context; /**< The context the array belongs to. May be NULL when NULL is given to dc_array_new(). */ | |
| size_t allocated; /**< The number of allocated items. Initially ~ 200. */ | |
| size_t count; /**< The number of used items. Initially 0. */ | |
| int type; | |
| uintptr_t* array; /**< The data items, can be used between data[0] and data[cnt-1]. Never NULL. */ | |
| }; | |
| dc_array_t* dc_array_new (dc_context_t*, size_t initsize); | |
| dc_array_t* dc_array_new_typed (dc_context_t*, int type, size_t initsize); | |
| void dc_array_empty (dc_array_t*); | |
| void dc_array_free_ptr (dc_array_t*); | |
| dc_array_t* dc_array_duplicate (const dc_array_t*); | |
| void dc_array_sort_ids (dc_array_t*); | |
| void dc_array_sort_strings (dc_array_t*); | |
| char* dc_array_get_string (const dc_array_t*, const char* sep); | |
| char* dc_arr_to_string (const uint32_t* arr, int cnt); | |
| } /* /extern "C" */ | |