MCPcopy Create free account
hub / github.com/cocos/cocos-engine / fastRemoveAt

Method fastRemoveAt

cocos/core/utils/array.ts:78–86  ·  view source on GitHub ↗
(i: number)

Source from the content-addressed store, hash-verified

76 }
77
78 public fastRemoveAt (i: number): void {
79 const array = this.array;
80 array[i] = array[array.length - 1];
81 --array.length;
82
83 if (i <= this.i) {
84 --this.i;
85 }
86 }
87
88 public push (item: T): void {
89 this.array.push(item);

Callers 15

fastRemoveMethod · 0.95
_removeInputDeviceMethod · 0.80
_removeInputDeviceMethod · 0.80
removeRendererMethod · 0.80
removeSharedBodyMethod · 0.80
removeShapeMethod · 0.80
removeShapeMethod · 0.80
removeJointMethod · 0.80
removeSharedBodyMethod · 0.80
removeConstraintMethod · 0.80
removeShapeMethod · 0.80
removeJointMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected