Home > @esengine/ecs-framework-monorepo > BitMask64Utils > toString
BitMask64Utils.toString() method
将掩码转换为字符串表示
Signature:
typescript
static toString(mask: BitMask64Data, radix?: number): string;
Parameters
Parameter | Type | Description |
---|---|---|
mask | 要转换的掩码 | |
radix | number | (Optional) 进制,支持2(二进制)或16(十六进制),默认为2 |
Returns:
string
掩码的字符串表示,二进制不带前缀,十六进制带0x前缀
Exceptions
当进制不支持时抛出错误