• Docs >
  • Template Function ripple::bits
Shortcuts

Template Function ripple::bits

Function Documentation

template<typename T>
auto ripple::bits(T val, int start, int end) -> T

Gets the value of the bits between [start, end] (inclusive).

Return

The value of the bits between the given [start, end] range.

Parameters
  • val: The value to get a bitrange from.

  • start: The index of the start bit.

  • end: The index of the end bit.

Template Parameters
  • T: The type of the input value.

Docs

Access comprehensive developer documentation for Ripple

View Docs

Tutorials

Get tutorials to help with understand all features

View Tutorials

Examples

Find examples to help get started

View Examples