Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
Slang Documentation
Slang Documentation
Back to top
View this page

bitfieldInsert¶

Description¶

bitfieldInsert inserts the bits least significant bits of insert into base at offset offset. The returned value will have bits [offset, offset + bits + 1] taken from [0, bits - 1] of insert and all other bits taken directly from the corresponding bits of base.

Signature¶

T bitfieldInsert<T>(
    T base,
    T insert,
    uint offset,
    uint bits);

Generic Parameters¶

T¶

Parameters¶

base : T¶

insert : T¶

offset : uint¶

bits : uint¶

On this page
  • bitfieldInsert
    • Description
    • Signature
    • Generic Parameters
      • T
    • Parameters
      • base : T
      • insert : T
      • offset : uint
      • bits : uint