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

Function das_array_at_i64

src/misc/daScriptC.cpp:1195–1201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1193}
1194
1195void * das_array_at_i64 ( das_array * arr, uint64_t index, uint32_t stride ) {
1196 // size_t matches das_array_at's pattern: 64-bit on 64-bit platforms (where
1197 // arr.size > UINT32_MAX is reachable), 32-bit on 32-bit platforms (where
1198 // a huge index can't be addressed anyway -- same graceful degradation as
1199 // the legacy entry).
1200 return ((Array *)arr)->data + size_t(index) * size_t(stride);
1201}
1202
1203void das_array_lock ( das_context * context, das_array * arr ) {
1204 array_lock(*(Context *)context, *(Array *)arr, nullptr);

Callers 1

test_capi_i64.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected