API Guides > ConceptRT 3.x
PackedStringListDynamicTcp Class Reference

Dynamic packed string list tcp. More...

Detailed Description

Dynamic packed string list tcp.

+ Inheritance diagram for PackedStringListDynamicTcp:

Public Member Methods

void WritePacketDataLength ()
 Writes the packet data length. More...
 
PCChar8 GetPacketBuffer ()
 Gets the packet buffer. More...
 
Int32 GetPacketBufferLength ()
 Gets the packet buffer length. More...
 
- Public Member Methods inherited from PackedStringListDynamic
 PackedStringListDynamic ()
 Default constructor. More...
 
- Public Member Methods inherited from PackedStrings
 PackedStrings (Int32 *count, Int32 *index, PChar8 data, Int32 CharCapacity, Int32 StringCapacity)
 Constructor. More...
 
Int32 GetCount () const
 Gets the count. More...
 
PCChar8 GetString (Int32 index) const
 Gets a string. More...
 
void CompleteString (PCChar8 string)
 Add a string or complete the current string added by AppendString to the list. More...
 
void AppendString (PCChar8 string)
 Append a string to the current string of the list. More...
 
void Clear ()
 Clears the content of the collection. More...
 
bool HasAvailableCharCapacity (Int32 charCapacity)
 Query if it has available character capacity. More...
 
void SetMinCharCapacity (Int32 charCapacity)
 Sets a minimum character capacity. More...
 
PChar8 _RawDataBuffer ()
 Gets the raw data buffer. More...
 
Int32 _RawDataBufferCapacity ()
 Gets the raw data buffer capacity. More...
 
Int32 _RawDataBufferUsedSize ()
 Gets the raw data buffer used size. More...
 
void _RawDataBufferUpdated (Int32 usedSize)
 Raw data buffer updated. More...
 
- Public Member Methods inherited from Strings
virtual ~Strings ()
 Destructor. More...
 
PCChar8 operator[] (Int32 index) const
 Array indexer operator. More...
 
void CheckCount (Int32 expectedValue) const
 Check count. Raise an exception whenever the count mismatch. More...
 
bool Contains (const PCChar8 text) const
 Query if this string collection contains the given text. More...
 

Protected Member Functions

void UpdateCharCapacity (Int32 expectedSize, Int32 &newCapacity, PChar8 &newBuffer)
 Update the character capacity. More...
 
- Protected Member Functions inherited from PackedStringListDynamic
void UpdateStringCapacity (Int32 expectedSize, Int32 &newCapacity, Int32 *&newBuffer)
 Update the mumber of strings capacity. More...
 

Methods Documentation

PCChar8 GetPacketBuffer ( )

Gets the packet buffer.

Returns
The packet buffer.
Int32 GetPacketBufferLength ( )

Gets the packet buffer length.

Returns
The packet buffer length.
void UpdateCharCapacity ( Int32  expectedSize,
Int32 newCapacity,
PChar8 newBuffer 
)
protectedvirtual

Update the character capacity.

Parameters
expectedSizeThe expected character capacity.
newCapacity[in, out] The new character capacity.
newBuffer[in, out] The new memory buffer.

New capacity is not always the same than expectedSize in order to optimize the memory managememt.

Reimplemented from PackedStringListDynamic.

void WritePacketDataLength ( )

Writes the packet data length.