BRL-CAD
Serializer Class Reference

#include <util.h>

Public Member Functions

 Serializer ()
 
 ~Serializer ()
 
bu_external take ()
 
void write_uint8 (uint8_t value)
 
void write_uint32 (uint32_t value)
 
void write_int32 (int32_t value)
 
void write_double (double value)
 
void write (const ON_3dPoint &value)
 
void write (const ON_BoundingBox &value)
 
void write (const ON_Interval &value)
 

Detailed Description

Definition at line 122 of file util.h.

Constructor & Destructor Documentation

◆ Serializer()

Serializer ( )
inline

Definition at line 125 of file util.h.

References BU_EXTERNAL_INIT, bu_malloc(), and bu_external::ext_buf.

Here is the call graph for this function:

◆ ~Serializer()

~Serializer ( )
inline

Definition at line 135 of file util.h.

References bu_free_external().

Here is the call graph for this function:

Member Function Documentation

◆ take()

bu_external take ( )
inline

Definition at line 141 of file util.h.

References BU_EXTERNAL_INIT, bu_malloc(), and bu_external::ext_buf.

Here is the call graph for this function:

◆ write_uint8()

void write_uint8 ( uint8_t  value)
inline

Definition at line 151 of file util.h.

◆ write_uint32()

void write_uint32 ( uint32_t  value)
inline

Definition at line 158 of file util.h.

References htonl(), and SIZEOF_NETWORK_LONG.

Here is the call graph for this function:

◆ write_int32()

void write_int32 ( int32_t  value)
inline

Definition at line 166 of file util.h.

References bu_bomb(), bu_cv_htonsl(), SIZEOF_NETWORK_LONG, and UNLIKELY.

Here is the call graph for this function:

◆ write_double()

void write_double ( double  value)
inline

Definition at line 176 of file util.h.

References bu_cv_htond(), and SIZEOF_NETWORK_DOUBLE.

Referenced by write().

Here is the call graph for this function:

◆ write() [1/3]

void write ( const ON_3dPoint &  value)
inline

Definition at line 183 of file util.h.

References write_double().

Referenced by write().

Here is the call graph for this function:

◆ write() [2/3]

void write ( const ON_BoundingBox &  value)
inline

Definition at line 191 of file util.h.

References write().

Here is the call graph for this function:

◆ write() [3/3]

void write ( const ON_Interval &  value)
inline

Definition at line 198 of file util.h.

References write_double().

Here is the call graph for this function:

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