vrpn  07.33
Virtual Reality Peripheral Network
vrpn_byte_order Namespace Reference

Internal header providing unbuffering facilities for a number of types. More...

Namespaces

 vrpn_detail
 

Functions

vrpn_uint8 hton (vrpn_uint8 hostval)
 host to network byte order for 8-bit uints is a no-op More...
 
vrpn_uint8 ntoh (vrpn_uint8 netval)
 network to host byte order for 8-bit uints is a no-op More...
 
vrpn_uint16 hton (vrpn_uint16 hostval)
 host to network byte order for 16-bit uints More...
 
vrpn_uint16 ntoh (vrpn_uint16 netval)
 network to host byte order for 16-bit uints More...
 
vrpn_uint32 hton (vrpn_uint32 hostval)
 host to network byte order for 32-bit uints More...
 
vrpn_uint32 ntoh (vrpn_uint32 netval)
 network to host byte order for 32-bit uints More...
 
vrpn_float64 hton (vrpn_float64 hostval)
 host to network byte order for 64-bit floats, using vrpn_htond More...
 
vrpn_float64 ntoh (vrpn_float64 netval)
 network to host byte order for 64-bit floats, using vrpn_ntohd More...
 
template<typename T >
hton (T input)
 Templated hton that type-puns to the same-sized uint type as a fallback for those types not explicitly defined above. More...
 
template<typename T >
ntoh (T input)
 Templated ntoh that type-puns to the same-sized uint type as a fallback for those types not explicitly defined above. More...
 

Detailed Description

Internal header providing unbuffering facilities for a number of types.

Date
2011
Author
Ryan Pavlik rpavl.nosp@m.ik@i.nosp@m.astat.nosp@m.e.ed.nosp@m.u and abiry.nosp@m.an@r.nosp@m.yand..nosp@m.net http://academic.cleardefinition.com/ Iowa State University Virtual Reality Applications Center Human-Computer Interaction Graduate ProgramContains overloaded hton() and ntoh() functions that forward to their correctly-typed implementations.

Function Documentation

◆ hton() [1/5]

vrpn_uint8 vrpn_byte_order::hton ( vrpn_uint8  hostval)
inline

host to network byte order for 8-bit uints is a no-op

Definition at line 265 of file vrpn_Shared.h.

Referenced by hton(), and vrpn_buffer().

◆ hton() [2/5]

vrpn_uint16 vrpn_byte_order::hton ( vrpn_uint16  hostval)
inline

host to network byte order for 16-bit uints

Definition at line 271 of file vrpn_Shared.h.

◆ hton() [3/5]

vrpn_uint32 vrpn_byte_order::hton ( vrpn_uint32  hostval)
inline

host to network byte order for 32-bit uints

Definition at line 277 of file vrpn_Shared.h.

◆ hton() [4/5]

vrpn_float64 vrpn_byte_order::hton ( vrpn_float64  hostval)
inline

host to network byte order for 64-bit floats, using vrpn_htond

Definition at line 283 of file vrpn_Shared.h.

References vrpn_htond().

Here is the call graph for this function:

◆ hton() [5/5]

template<typename T >
T vrpn_byte_order::hton ( input)
inline

Templated hton that type-puns to the same-sized uint type as a fallback for those types not explicitly defined above.

Definition at line 290 of file vrpn_Shared.h.

References hton().

Here is the call graph for this function:

◆ ntoh() [1/5]

vrpn_uint8 vrpn_byte_order::ntoh ( vrpn_uint8  netval)
inline

network to host byte order for 8-bit uints is a no-op

Definition at line 268 of file vrpn_Shared.h.

Referenced by ntoh(), and vrpn_unbuffer().

◆ ntoh() [2/5]

vrpn_uint16 vrpn_byte_order::ntoh ( vrpn_uint16  netval)
inline

network to host byte order for 16-bit uints

Definition at line 274 of file vrpn_Shared.h.

◆ ntoh() [3/5]

vrpn_uint32 vrpn_byte_order::ntoh ( vrpn_uint32  netval)
inline

network to host byte order for 32-bit uints

Definition at line 280 of file vrpn_Shared.h.

◆ ntoh() [4/5]

vrpn_float64 vrpn_byte_order::ntoh ( vrpn_float64  netval)
inline

network to host byte order for 64-bit floats, using vrpn_ntohd

Definition at line 286 of file vrpn_Shared.h.

References vrpn_ntohd().

Here is the call graph for this function:

◆ ntoh() [5/5]

template<typename T >
T vrpn_byte_order::ntoh ( input)
inline

Templated ntoh that type-puns to the same-sized uint type as a fallback for those types not explicitly defined above.

Definition at line 303 of file vrpn_Shared.h.

References ntoh().

Here is the call graph for this function: