Skip to content

sco_datacore_v1.set

record: a record name, or “guid:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx”. field: a field path, name / name[3] / name[Type] joined with ‘.’. Sets a value in place; v NULL or SCO_DC_NULL sets a null pointer, SCO_DC_INSTANCE points the field at an added instance. Implementation refuses duplicate set of same target/field within one patch with BAD_ARG.

sco_result (*)(uint64_t, const char *, const char *, const sco_dc_value *)

Service index

Property Value
Symbol sco_datacore_v1.set
Record ID sco-datacore-v1-set
Service sco.datacore
Table sco_datacore_v1
Version macro SCO_DATACORE_VERSION_1_1
Packed table version 65537
Since / availability size >= 32; 1.0
Complete member extent (x64 bytes) 32
Table size (x64 bytes) 88

Header source

sco_result (*set)(uint64_t patch, const char* record, const char* field, const sco_dc_value* v);
record: a record name, or “guid:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx”. field: a field path, name / name[3] / name[Type] joined with ‘.’. Sets a value in place; v NULL or SCO_DC_NULL sets a null pointer, SCO_DC_INSTANCE points the field at an added instance. Implementation refuses duplicate set of same target/field within one patch with BAD_ARG.

Absent table: query_service NOT_FOUND; stopped operations: UNAVAILABLE. Unknown/released patch: NOT_FOUND; closed patch: BAD_ARG; operation cap: TOO_MANY. Additional failures/output state unspecified unless described in the buffer contract.

Absent table: query_service NOT_FOUND

Strings/values copied; host owns patches and instances; IDs, not allocations, cross the ABI. Internal allocation/failure guarantee unspecified.

Any thread; short locks, no wait for game load. Recursive/concurrent same-patch reentrancy unspecified.

unspecified

unspecified

No in-flight cancellation; discard drops open/queued patch, not applied or saved effects. Unload forgets owned patches.

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
(*set)
cpp typed-wrapper include/scosdk/datacore.hpp
return appending_ ? t_->append(id_, rec.c_str(), f.c_str(), &v) : t_->set(id_, rec.c_str(), f.c_str(), &v);
csharp typed-wrapper sdk/csharp/Sco.Sdk/DataCore.cs
return t->set(Id, r, f, v.Ptr);
lua typed-wrapper plugins/lua/sco_lua_game.c
const sco_result r = dc->set(p->id, record, field, v.type == SCO_DC_NULL ? NULL : &v);

None identified in the catalogue; this is not proof none can exist.

ABI pins prove layout, not semantic behavior or a live game session.