The PacketBuilder type exposes the following members.
Back to Top
Back to Top
Back to Top
Constructors
Name | Description | |
---|---|---|
![]() | PacketBuilder |
Create a new instance of the ConnectionPacketBuilder class
|
Methods
Name | Description | |
---|---|---|
![]() | AddPartialPacket |
Add a partial packet to the end of the cache by reference.
|
![]() | ClearNTopBytes |
Clear N bytes from cache, starting with oldest bytes first.
|
![]() | ![]() | (Inherited from ![]() |
![]() | ![]() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from ![]() |
![]() | FirstByte |
Returns the value of the first cached byte.
|
![]() | GetAllData |
Copies all cached bytes into a single array and returns. Original data is left unchanged.
|
![]() | ![]() | Serves as a hash function for a particular type. (Inherited from ![]() |
![]() | ![]() | Gets the (Inherited from ![]() ![]() |
![]() | ![]() | Creates a shallow copy of the current (Inherited from ![]() ![]() |
![]() | NumUnusedBytesMostRecentPartialPacket |
Returns the number of unused bytes in the most recently cached partial packet.
|
![]() | ReadDataSection |
Copies the requested cached bytes into a single array and returns. Original data is left unchanged.
|
![]() | RemoveMostRecentPartialPacket |
Returns the most recently cached partial packet and removes it from the cache.
Used to more efficiently utilise allocated memory space.
|
![]() | ![]() | Returns a string that represents the current object. (Inherited from ![]() |
Properties
Name | Description | |
---|---|---|
![]() | Locker |
Locker object used for performing thread safe operations over this packet builder
|
![]() | TotalBytesCached |
The total number of cached bytes. This is the sum of all bytes across all cached partial packets. See TotalPartialPacketCount.
|
![]() | TotalBytesExpected |
The total number of bytes required to rebuild the next whole packet.
|
![]() | TotalPartialPacketCount |
The total number of cached partial packets. This is different from TotalBytesCached because each partial packet may contain a variable number of bytes.
|
See Also