set_bit


Description:

public char set_bit (char byte_value, size_t position)

Sets the bit value at the given position within the byte. This has the effect of setting the bit value to 1.

Parameters:

byte_value

the byte

position

the position in the byte to set the bit value

Returns:

the new byte value


Namespace: Catalyst.ByteUtils
Package: catalyst-1