xapian-core  1.4.19
serialise-double.cc File Reference

functions to serialise and unserialise a double More...

#include <config.h>
#include <xapian/error.h>
#include "omassert.h"
#include "serialise-double.h"
#include <cfloat>
#include <cmath>
#include <algorithm>
#include <string>
+ Include dependency graph for serialise-double.cc:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


static int base256ify_double (double &v)
std::string serialise_double (double v)
 Serialise a double to a string. More...
double unserialise_double (const char **p, const char *end)
 Unserialise a double serialised by serialise_double. More...

Detailed Description

functions to serialise and unserialise a double

Definition in file serialise-double.cc.

Function Documentation

◆ base256ify_double()

static int base256ify_double ( double &  v)

Definition at line 68 of file serialise-double.cc.

Referenced by serialise_double(), and unserialise_double().

◆ serialise_double()

std::string serialise_double ( double  v)

◆ unserialise_double()

double unserialise_double ( const char **  p,
const char *  end