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

Method toString

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

* 将位集合转换为可读字符串 * @returns 格式为"Bits[index1, index2, ...]"的字符串

()

Source from the content-addressed store, hash-verified

222 * @returns 格式为"Bits[index1, index2, ...]"的字符串
223 */
224 public toString(): string {
225 const bits: string[] = [];
226 for (let i = 0; i < 64; i++) {
227 if (this.get(i)) {
228 bits.push(i.toString());
229 }
230 }
231 return `Bits[${bits.join(', ')}]`;
232 }
233
234 /**
235 * 将位集合转换为二进制字符串

Callers 7

toHexStringMethod · 0.45
createWorkerScriptFunction · 0.45
EntityRefFunction · 0.45
serializeMethod · 0.45
deserializeMethod · 0.45
getSerializationInfoMethod · 0.45

Calls 3

getMethod · 0.95
pushMethod · 0.65
joinMethod · 0.45

Tested by

no test coverage detected