sco_datacore_v1.state
SCO_DC_OPEN or SCO_DC_LOADED.
Signature
Section titled “Signature”uint32_t (*)(void)Service and availability
Section titled “Service and availability”| Property | Value |
|---|---|
| Symbol | sco_datacore_v1.state |
| Record ID | sco-datacore-v1-state |
| Service | sco.datacore |
| Table | sco_datacore_v1 |
| Version macro | SCO_DATACORE_VERSION_1_1 |
| Packed table version | 65537 |
| Since / availability | size >= 16; 1.0 |
| Complete member extent (x64 bytes) | 16 |
| Table size (x64 bytes) | 88 |
Parameters and buffers
Section titled “Parameters and buffers”uint32_t (*state)(void);
SCO_DC_OPEN or SCO_DC_LOADED.
Results and failures
Section titled “Results and failures”Returns OPEN or LOADED; no sco_result. Absent table NOT_FOUND; stopped-state value unspecified as a contract.
Absent capability
Section titled “Absent capability”Absent table NOT_FOUND
Ownership
Section titled “Ownership”Strings/values copied; host owns patches and instances; IDs, not allocations, cross the ABI. Internal allocation/failure guarantee unspecified.
Thread affinity
Section titled “Thread affinity”Any thread; short locks, no wait for game load. Recursive/concurrent same-patch reentrancy unspecified.
Callback context
Section titled “Callback context”unspecified
Reentrancy
Section titled “Reentrancy”unspecified
Cleanup and cancellation
Section titled “Cleanup and cancellation”No in-flight cancellation; discard drops open/queued patch, not applied or saved effects. Unload forgets owned patches.
Language mappings
Section titled “Language mappings”Status labels are copied verbatim from the catalogue: direct is native access; typed-wrapper is wrapper-backed; restricted is a subset/adaptation; unsupported means no supported route is established. No status implies universal safety.
| Language | Catalogue status | Source evidence / wrapper tokens |
|---|---|---|
| c | direct | include/sco_datacore.h(*state) |
| cpp | typed-wrapper | include/scosdk/datacore.hppuint32_t State() const noexcept { return detail::CanCall(ref_.Get(), &sco_datacore_v1::state) ? ref_->state() : SCO_DC_LOADED; } |
| csharp | typed-wrapper | sdk/csharp/Sco.Sdk/DataCore.cspublic uint State => _t == null ? 0 : _t->state(); |
| lua | typed-wrapper | plugins/lua/sco_lua_game.clua_pushstring(L, dc->state() == SCO_DC_OPEN ? “open” : “loaded”); |
Examples
Section titled “Examples”None identified in the catalogue; this is not proof none can exist.
- tests/abi_datacore.c
- tests/test_datacore_service.cpp
- sdk/csharp/Sco.Sdk.Tests/FakeHost.cs
- tests/test_lua.cpp
- tools/test.sh
- sdk/csharp/Sco.Sdk.Tests/Layout.cs
ABI pins prove layout, not semantic behavior or a live game session.