OmniSketch  0.1
Oh my sketch!
utils.h File Reference

Some utils. More...

#include <string_view>
#include <toml++/toml.h>
#include <vector>
Include dependency graph for utils.h:
This graph shows which files directly or indirectly include this file:

Classes

class  OmniSketch::Util::ConfigParser
 Parse config file and return its configurations in a versatile manner. More...
 
class  OmniSketch::Util::DynamicIntX< T >
 Integer of any fixed length. More...
 

Namespaces

 OmniSketch
 
 OmniSketch::Util
 Utils of manipulating integers, parsing configuration files and so on.
 

Macros

#define MANGLE_MAGIC   ((int32_t)2083697005)
 

Functions

template<typename T >
OmniSketch::Util::Mangle (T key)
 Mangling a multi-byte object. More...
 
bool OmniSketch::Util::IsPrime (int32_t n)
 Compute primality of a 32-bit number. More...
 
int32_t OmniSketch::Util::NextPrime (int32_t n)
 Find the next prime number. More...
 
uint16_t OmniSketch::Util::Net2Host16 (uint16_t val)
 Convert a 2-byte word from network endian to the host endian. More...
 
uint32_t OmniSketch::Util::Net2Host32 (uint32_t val)
 Convert a 4-byte word from network endian to host endian. More...
 
bool OmniSketch::Util::Endianness ()
 Endianness of the platform. More...
 

Detailed Description

Some utils.

Author
FerricIon (you@d.nosp@m.omai.nosp@m.n.com)

Macro Definition Documentation

◆ MANGLE_MAGIC

#define MANGLE_MAGIC   ((int32_t)2083697005)