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

Method tableReserve

src/simulate/json_scan.cpp:617–621  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

615 // Reserve a key in the table and return the index
616 template <typename KeyT>
617 int64_t tableReserve(Table * tab, const KeyT & key, uint32_t valueTypeSize) {
618 auto hfn = hash_function(ctx, key);
619 TableHash<KeyT> thh(&ctx, valueTypeSize);
620 return thh.reserve(*tab, key, hfn, at);
621 }
622
623 // Parse key from string and reserve in table (for compound key types)
624 template <typename KeyT>

Callers

nothing calls this directly

Calls 2

hash_functionFunction · 0.85
reserveMethod · 0.45

Tested by

no test coverage detected