replaceBits

fun replaceBits(longValue: Long, bitFieldValue: Int): Long

Given a Long field value, replace the bits occupied by this BitField with the supplied Int value, returning the resulting Long.

Return

The Long with the bit field updated.

Parameters

longValue

A Long into which to replace the bit field.

bitFieldValue

The Int to be written into the bit field.