PacketBuilder RemoveMostRecentPartialPacket Method NetworkComms.Net Help
Returns the most recently cached partial packet and removes it from the cache. Used to more efficiently utilise allocated memory space.

Namespace: NetworkCommsDotNet.Tools
Assembly: NetworkCommsDotNet (in NetworkCommsDotNet.dll) Version: (

public byte[] RemoveMostRecentPartialPacket(
	ref int lastPacketBytesRead


Type: OnlineSystem Int32 
The number of valid bytes in the last partial packet added

Return Value

Type:  OnlineByte 
A byte[] corresponding with the last added partial packet
See Also