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

bitfieldExtract¶

Description¶

bitfieldExtract extracts a subset of the bits of value and returns it in the least significant bits of the result. The range of bits extracted is [offset, offset + bits - 1].

Signature¶

T bitfieldExtract<T>(
    T value,
    uint offset,
    uint bits);

Generic Parameters¶

T¶

Parameters¶

value : T¶

offset : uint¶

bits : uint¶

On this page
  • bitfieldExtract
    • Description
    • Signature
    • Generic Parameters
      • T
    • Parameters
      • value : T
      • offset : uint
      • bits : uint