Skip to content

setBit

@algorandfoundation/algorand-typescript


@algorandfoundation/algorand-typescript / op / setBit

Function: setBit()

Call Signature

setBit(target, n, c): bytes

Defined in: packages/algo-ts/src/op.ts:4058

Set the nth bit of target to the value of c (1 or 0)

Parameters

target

bytes

n

uint64

c

uint64

Returns

bytes

Call Signature

setBit(target, n, c): uint64

Defined in: packages/algo-ts/src/op.ts:4063

Set the nth bit of target to the value of c (1 or 0)

Parameters

target

uint64

n

uint64

c

uint64

Returns

uint64