PacketBuilder MembersNetworkComms.Net Help
The PacketBuilder type exposes the following members.
Constructors

  NameDescription
Public methodPacketBuilder
Create a new instance of the ConnectionPacketBuilder class
Back to Top
Methods

  NameDescription
Public methodAddPartialPacket
Add a partial packet to the end of the cache by reference.
Public methodClearNTopBytes
Clear N bytes from cache, starting with oldest bytes first.
Public methodOnlineEquals
Determines whether the specified OnlineObject is equal to the current OnlineObject.
(Inherited from OnlineObject.)
Protected methodOnlineFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from OnlineObject.)
Public methodFirstByte
Returns the value of the first cached byte.
Public methodGetAllData
Copies all cached bytes into a single array and returns. Original data is left unchanged.
Public methodOnlineGetHashCode
Serves as a hash function for a particular type.
(Inherited from OnlineObject.)
Public methodOnlineGetType
Gets the OnlineType of the current instance.
(Inherited from OnlineObject.)
Protected methodOnlineMemberwiseClone
Creates a shallow copy of the current OnlineObject.
(Inherited from OnlineObject.)
Public methodNumUnusedBytesMostRecentPartialPacket
Returns the number of unused bytes in the most recently cached partial packet.
Public methodReadDataSection
Copies the requested cached bytes into a single array and returns. Original data is left unchanged.
Public methodRemoveMostRecentPartialPacket
Returns the most recently cached partial packet and removes it from the cache. Used to more efficiently utilise allocated memory space.
Public methodOnlineToString
Returns a string that represents the current object.
(Inherited from OnlineObject.)
Back to Top
Properties

  NameDescription
Public propertyLocker
Locker object used for performing thread safe operations over this packet builder
Public propertyTotalBytesCached
The total number of cached bytes. This is the sum of all bytes across all cached partial packets. See TotalPartialPacketCount.
Public propertyTotalBytesExpected
The total number of bytes required to rebuild the next whole packet.
Public propertyTotalPartialPacketCount
The total number of cached partial packets. This is different from TotalBytesCached because each partial packet may contain a variable number of bytes.
Back to Top
See Also