MCPcopy Create free account
hub / github.com/BernardoGiordano/Checkpoint / ckpt_extdata_create

Function ckpt_extdata_create

common/script/checkpoint_api.cpp:442–452  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

440}
441
442void ckpt_extdata_create(struct ParseState* Parser, struct Value* ReturnValue, struct Value** Param, int NumArgs)
443{
444 const ScriptArgs args(Parser, Param, NumArgs, "extdata_create");
445 const uint64_t id = strtoull(args.str(0), nullptr, 16);
446 const int extdataId = args.numInRange(1, 0, 0x7FFFFFFF);
447 // Fixed for the life of the archive, so 0 would be an archive nothing can
448 // ever be written to.
449 const int maxDirs = args.numInRange(2, 1, 10000);
450 const int maxFiles = args.numInRange(3, 1, 10000);
451 ReturnValue->Val->Integer = host().extdataCreate(id, (uint32_t)extdataId, maxDirs, maxFiles);
452}
453
454void ckpt_extdata_delete(struct ParseState* Parser, struct Value* ReturnValue, struct Value** Param, int NumArgs)
455{

Callers

nothing calls this directly

Calls 3

strMethod · 0.80
numInRangeMethod · 0.80
extdataCreateMethod · 0.45

Tested by

no test coverage detected