12 template <
typename T_Storage>
38 unsigned contentSize = 0);
43 bool setToNet(
char* contentBuffer)
const;
49 namespace DtBufferSerialize
51 template <
typename T_Storage>
53 template <
typename T_Storage>
55 template <
typename T_Storage>
64 #include "vrfutil/fixedPointAngle.inl"
DT_DLL_readerWriter int getSize(const DtString &val)
The number of bytes required to encode the value.
DtFixedPointAngle & operator=(const DtFixedPointAngle &rhs)
bool setToNet(char *contentBuffer) const
Fills in the network buffer with the task contents. Buffer must be allocated by the caller...
Hold a value in the range of [0, 2PI) in the number of bits specified used by T_Storage. This has the precision of 2PI / 2^16 Note: If set to any values outside the range, the value will be converted into the range [-PI, PI). For example, 2PI+1 will become 1. Template class allows for instantiation of angles with different precisions using different storage classes. T_Storage should be something like a DtU16, DtU32, etc.
Definition: fixedPointAngle.h:13
DT_DLL_readerWriter char * encode(const DtFilename &val, char *buffer)
Serializes the provided value val into buffer. buffer must have at least the number of bytes returned...
int netRepSize() const
Returns the size of the full network representation padded to an 8-byte boundary. ...
void setValue(double v)
Set the value of the angle in radians.
DT_DLL_readerWriter const char * decode(DtString &val, const char *buffer)
Decodes a value from buffer and places the result in val of the type specified by val...
double value() const
The value of the angle in radians.
bool setFromNet(const char *contentBuffer, unsigned contentSize=0)
Fills in the task from the network buffer. Content size is not used.
T_Storage myValue
Definition: fixedPointAngle.h:46