pointerBitLockMaskPtr

fun pointerBitLockMaskPtr(    ptr: <Error class: unknown class>? = null,     lockBit: <Error class: unknown class>,     set: Boolean,     preserveMask: <Error class: unknown class>,     preservePtr: <Error class: unknown class>? = null): <Error class: unknown class>?(source)

This mangles @ptr as g_pointer_bit_lock() and g_pointer_bit_unlock() do.

Return

the mangled pointer.

Since

2.80

Parameters

ptr

the pointer to mask

lockBit

the bit to set/clear. If set to G_MAXUINT, the lockbit is taken from @preserve_ptr or @ptr (depending on @preserve_mask).

set

whether to set (lock) the bit or unset (unlock). This has no effect, if @lock_bit is set to G_MAXUINT.

preserveMask

if non-zero, a bit-mask for @preserve_ptr. The

preservePtr

if @preserve_mask is non-zero, the bits from this pointer are set in the result.