    

 ## On this page

  

 

 # PutBitsMask

 Last update: 17.07.2025 

Returns the input with the bits from pattern copied, with respect to a mask.

## Interface

NameKindTypeCommentNPN/ASize of the bit-fieldbfIunsigned&lt;&lt;N&gt;&gt;Input bit-fieldpatternIunsigned&lt;&lt;N&gt;&gt;Pattern to be setmaskIunsigned&lt;&lt;N&gt;&gt;Mask for the patternvOunsigned&lt;&lt;N&gt;&gt;Result of the operation**Parent topic:**[Bitfield](../../libraries/bitfield/bitfield.md)