Main Page Modules Namespaces C++ Classes Compound List File List Index
TNL: TNL::NetType Struct Reference

# TNL::NetType Struct Reference

`#include <tnlTypes.h>`

Inheritance diagram for TNL::NetType:

## Detailed Description

NetType serves as a base class for all bit-compressed versions of the base types that can be transmitted using TNL's RPC mechanism.

In general, the type names are self-explanatory, providing simple wrappers on the original base types. The template argument for bit counts or numeric ranges is necessary because TNL parses the actual function prototype as a string in order to determine how many bits to use for each RPC parameter.

Template parameters to the NetType templates can be either integer constants or enumeration values. If enumeration values are used, the TNL_DECLARE_RPC_ENUM or TNL_DECLARE_RPC_MEM enum macros must be used to register the enumerations with the RPC system.