BitStream
bitstream::serialize_traits< double > Struct Reference

A trait used to serialize a double as-is, without any bound checking or quantization. More...

#include <float_trait.h>

Static Public Member Functions

template<typename Stream >
static utility::is_writing_t< Stream > serialize (Stream &writer, in< double > value) noexcept
 Serializes a whole double into the writer. More...
 
template<typename Stream >
static utility::is_reading_t< Stream > serialize (Stream &reader, double &value) noexcept
 Serializes a whole double from the reader. More...
 

Detailed Description

A trait used to serialize a double as-is, without any bound checking or quantization.

Member Function Documentation

◆ serialize() [1/2]

template<typename Stream >
static utility::is_reading_t<Stream> bitstream::serialize_traits< double >::serialize ( Stream &  reader,
double &  value 
)
inlinestaticnoexcept

Serializes a whole double from the reader.

Parameters
readerThe stream to read from
valueThe double to serialize to
Returns
Success

◆ serialize() [2/2]

template<typename Stream >
static utility::is_writing_t<Stream> bitstream::serialize_traits< double >::serialize ( Stream &  writer,
in< double >  value 
)
inlinestaticnoexcept

Serializes a whole double into the writer.

Parameters
writerThe stream to write to
valueThe double to serialize
Returns
Success

The documentation for this struct was generated from the following file: