GNU Radio 3.6.5 C++ API

base.h File Reference

#include <vector>

Go to the source code of this file.

Functions

bool dec2base (unsigned int num, int base, std::vector< int > &s)
 change base
bool dec2bases (unsigned int num, const std::vector< int > &bases, std::vector< int > &s)
unsigned int base2dec (const std::vector< int > &s, int base)
unsigned int bases2dec (const std::vector< int > &s, const std::vector< int > &bases)

Function Documentation

unsigned int base2dec ( const std::vector< int > &  s,
int  base 
)
unsigned int bases2dec ( const std::vector< int > &  s,
const std::vector< int > &  bases 
)
bool dec2base ( unsigned int  num,
int  base,
std::vector< int > &  s 
)

change base

bool dec2bases ( unsigned int  num,
const std::vector< int > &  bases,
std::vector< int > &  s 
)