common/serialise-double.h File Reference

#include <xapian/visibility.h>
#include <string>

Include dependency graph for serialise-double.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

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


Function Documentation

std::string serialise_double ( double  v  ) 

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

Unserialise a double serialised by serialise_double.

Parameters:
p Pointer to a pointer to the string, which will be advanced past the serialised double.
end Pointer to the end of the string.
Returns:
The unserialised double.

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

References base256ify_double().

Referenced by check_double_serialisation(), Xapian::Query::Internal::get_dbl_parameter(), RemoteServer::msg_query(), QUnserial::readcompound(), Xapian::TradWeight::unserialise(), Xapian::BM25Weight::unserialise(), Xapian::FixedWeightPostingSource::unserialise(), Xapian::ValueMapPostingSource::unserialise(), and unserialise_mset().


Documentation for Xapian (version 1.2.13).
Generated on 9 Jan 2013 by Doxygen 1.5.9.