VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Namespaces | Functions
rwIntSized.h File Reference

Defines ReaderWriter classes for varying sized integers In most cases the DtRwInt class is the preferred class to use for representing integers in the reader writer system. More...

Go to the source code of this file.

Classes

class  DtRwInt8
 DtRwInt that encodes the value as an 8 bit integer. More...
class  DtRwInt16
 DtRwInt that encodes the value as a 16 bit integer. More...
class  DtRwInt32
 DtRwInt that encodes the value as a 32 bit integer. More...

Namespaces

namespace  DtBufferSerialize
 Set of utility functions for encoding and decoding various data types to a byte array.

Functions

DT_DLL_readerWriter int DtBufferSerialize::getSize (const DtRwInt8 &val)
DT_DLL_readerWriter int DtBufferSerialize::getSize (const DtRwInt16 &val)
DT_DLL_readerWriter int DtBufferSerialize::getSize (const DtRwInt32 &val)
DT_DLL_readerWriter charDtBufferSerialize::encode (const DtRwInt8 &val, char *buffer)
 Serializes the provided value val into buffer.
DT_DLL_readerWriter charDtBufferSerialize::encode (const DtRwInt16 &val, char *buffer)
DT_DLL_readerWriter charDtBufferSerialize::encode (const DtRwInt32 &val, char *buffer)
DT_DLL_readerWriter const charDtBufferSerialize::decode (DtRwInt8 &val, const char *buffer)
 Decodes a value from buffer and places the result in val of the type specified by val.
DT_DLL_readerWriter const charDtBufferSerialize::decode (DtRwInt16 &val, const char *buffer)
DT_DLL_readerWriter const charDtBufferSerialize::decode (DtRwInt32 &val, const char *buffer)

Detailed Description

Defines ReaderWriter classes for varying sized integers In most cases the DtRwInt class is the preferred class to use for representing integers in the reader writer system.

However, when a reader writer needs to be encoded in a very specific format, generally to meet some network specification, these classes can be used instead. They represent integers that will be encoded and decoded using specific sizes. Internal representation is the same as DtRwInt, meaning a 32 bit integer. internal storage.


Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)