42#ifndef _DWMXDRUTILS_HH_
43#define _DWMXDRUTILS_HH_
60 static bool Encode(
float val, std::array<char,4> & buf);
66 static bool Decode(
const std::array<char,4> & buf,
float & val);
72 static bool Encode(
double val, std::array<char,8> & buf);
78 static bool Decode(
const std::array<char,8> & buf,
double & val);
85 static uint32_t
Encode(
float val,
char **buf);
90 static void Decode(
char *buf,
float & val);
97 static uint32_t
Encode(
double val,
char **buf);
102 static void Decode(
char *buf,
double & val);
Wrapper for XDR encode/decode functions.
Definition DwmXDRUtils.hh:54
static bool Encode(double val, std::array< char, 8 > &buf)
Encode the given double val into the given buffer buf.
static bool Encode(float val, std::array< char, 4 > &buf)
Encode the given float val into the given buffer buf.
static uint32_t Encode(float val, char **buf)
Encodes the given float val into *buf.
static bool Decode(const std::array< char, 4 > &buf, float &val)
Decodes the given buffer buf into the given value val.
static bool Decode(const std::array< char, 8 > &buf, double &val)
Decodes the given buffer buf into the given double value val.
static void Decode(char *buf, float &val)
Decodes the given buf into the given float value val.
static void Decode(char *buf, double &val)
Decodes the given buf into the given double value val.
static uint32_t Encode(double val, char **buf)
Encodes the given double val into *buf.