MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / das_array_init_borrowed_i64

Function das_array_init_borrowed_i64

src/misc/daScriptC.cpp:1132–1136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1130}
1131
1132void das_array_init_borrowed_i64 ( das_array * arr, void * data, uint64_t count, uint64_t capacity ) {
1133 memset(arr, 0, sizeof(das_array));
1134 array_mark_locked(*(Array *)arr, data, count, capacity);
1135 ((Array *)arr)->flags |= 1u; // bit 0 == shared (see das_array_init_borrowed)
1136}
1137
1138void das_array_reserve ( das_context * context, das_array * arr, uint32_t capacity, uint32_t stride ) {
1139 // Same guard as das_array_clear: stride==0 with non-zero capacity reaches

Callers 1

test_capi_i64.cppFile · 0.85

Calls 1

array_mark_lockedFunction · 0.85

Tested by

no test coverage detected