Skip to content

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

Bits.clear() method

清除指定位为0

Signature:

typescript
clear(index: number): void;

Parameters

Parameter

Type

Description

index

number

位索引,范围 [0, 63]

Returns:

void

Exceptions

当位索引为负数时抛出错误

基于 MIT 许可证发布