Skip to content

Home > @esengine/ecs-framework-monorepo > Bits > set

Bits.set() method

设置指定位为1

Signature:

typescript
set(index: number): void;

Parameters

Parameter

Type

Description

index

number

位索引,范围 [0, 63]

Returns:

void

Exceptions

当位索引为负数或超过64位限制时抛出错误

基于 MIT 许可证发布