# Binary.hpp

This File On Github
Ask A Question

API: latest
module: oatpp
#include "oatpp/core/utils/Binary.hpp"

# Binary

Collection of methods for binary operations and arithmetics.

namespace oatpp { namespace utils { 
  class Binary {}
}}

# Methods

Return Type Name Summary
v_int64 nextP2 Calculate the next power of 2.

# Binary::nextP2

Calculate the next power of 2.
Example:
nextP2(127) = 128, nextP2(1025) = 2048.

  • @return

static v_int64 nextP2(v_int64 v)