MCPcopy Create free account
hub / github.com/apache/fory / putAccessor

Function putAccessor

javascript/packages/core/lib/gen/collection.ts:459–467  ·  view source on GitHub ↗
(item: string, index: string)

Source from the content-addressed store, hash-verified

457 ? compatibleArrayCollectionExpr(compatibleReadAction!.elementTypeId, len)
458 : this.newCollection(len);
459 const putAccessor = (item: string, index: string) =>
460 compatibleListToArray
461 ? compatibleArrayPutAccessor(
462 compatibleReadAction!.elementTypeId,
463 result,
464 item,
465 index,
466 )
467 : this.putAccessor(result, item, index);
468 const rejectCompatiblePayload = compatibleListToArray
469 ? `
470 if (${flags} & (${CollectionFlags.HAS_NULL} | ${CollectionFlags.TRACKING_REF})) {

Callers 1

readSpecificTypeFunction · 0.85

Calls 2

putAccessorMethod · 0.45

Tested by

no test coverage detected