    

 ## On this page

  

 

 # PutBitsMask

 Last update: 09.03.2026 

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](./bitfield.md)