setbit
setbit<
InputType>(data,bitIndex,value):InputTypeextendsstring?bytes:uint64
Type parameters
• InputType extends Brand<string, "bytes"> | uint64
Parameters
• data: InputType
The input data to update
• bitIndex: uint64
The index of the bit to update
• value: boolean
The value to set the bit to
Returns
InputType extends string ? bytes : uint64
The updated data