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: 3.0.0.0 (3.0.0.0)
Syntax

public byte[] RemoveMostRecentPartialPacket(
	ref int lastPacketBytesRead
)

Parameters

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