MCPcopy Create free account
hub / github.com/chatmail/core / iter_array

Function iter_array

python/src/deltachat/cutil.py:17–19  ·  view source on GitHub ↗
(dc_array_t, constructor: Callable[[int], T])

Source from the content-addressed store, hash-verified

15
16
17def iter_array(dc_array_t, constructor: Callable[[int], T]) -> Generator[T, None, None]:
18 for i in range(lib.dc_array_get_cnt(dc_array_t)):
19 yield constructor(lib.dc_array_get_id(dc_array_t, i))
20
21
22def from_dc_charpointer(obj) -> str:

Callers 6

get_blocked_contactsMethod · 0.85
get_contactsMethod · 0.85
import_vcardMethod · 0.85
get_fresh_messagesMethod · 0.85
get_messagesMethod · 0.85
get_contactsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected