MCPcopy Create free account
hub / github.com/esengine/esengine / get

Method get

packages/core/src/ECS/Utils/Bits.ts:60–62  ·  view source on GitHub ↗

* 获取指定位的值 * @param index 位索引 * @returns 如果位被设置为1则返回true,否则返回false

(index: number)

Source from the content-addressed store, hash-verified

58 * @returns 如果位被设置为1则返回true,否则返回false
59 */
60 public get(index: number): boolean {
61 return BitMask64Utils.getBit(this._value, index);
62 }
63
64 /**
65 * 检查是否包含另一个位集合的所有位

Callers 2

toStringMethod · 0.95
toBinaryStringMethod · 0.95

Calls 1

getBitMethod · 0.80

Tested by

no test coverage detected