TIP6Buffer
From Ultibo.org
Revision as of 04:54, 22 May 2018 by Ultibo (Talk | contribs) (Created page with "Return to Unit IPv6 __TOC__ === Description === ---- ''To be documented'' === Class definitions === ---- <div class="toccolours mw-collapsible mw-collapse...")
Return to Unit IPv6
Description
To be documented
Class definitions
[Expand]
TIP6Buffer = class(TTransportBufferEx)
Function declarations
[Expand]
function TIP6Buffer.GetFragment(APacket:PIP6Packet; AOffset:LongWord; ASize:Word):PIP6Fragment;
Description: Gets the Fragment with matching Offset and Size if any
[Expand]
function TIP6Buffer.AddFragment(APacket:PIP6Packet; AOffset:LongWord; ASize:Word):PIP6Fragment;
Description: Adds a new Fragment as the Last fragment in the Packet
[Expand]
function TIP6Buffer.RemoveFragment(APacket:PIP6Packet):Boolean;
Description: Removes the First fragment from the Packet
[Expand]
procedure TIP6Buffer.FlushFragments(APacket:PIP6Packet);
Description: Removes all fragments from the Packet
[Expand]
function TIP6Buffer.GetPacket(AId:LongWord; const ASource,ADest:TIn6Addr; ALock:Boolean):PIP6Packet;
Description: Gets the Packet with matching Id, Source and Dest if any
[Expand]
function TIP6Buffer.AddPacket(AId:LongWord; const ASource,ADest:TIn6Addr; ALock:Boolean):PIP6Packet;
Description: Adds a new Packet as the Last packet in the Buffer
[Expand]
function TIP6Buffer.RemovePacket(APacket:PIP6Packet):Boolean;
Description: Removes the Packet from the Buffer and release the memory
[Expand]
function TIP6Buffer.UnlockPacket(APacket:PIP6Packet):Boolean;
Description: Unlock the Packet previously locked by GetPacket or AddPacket
[Expand]
procedure TIP6Buffer.FlushPackets(All:Boolean);
Description: Removes either all packets or packets which have expired
[Expand]
function TIP6Buffer.PutHeader(APacket:PIP6Packet; ABuffer:Pointer; ALength:Word):Boolean;
Description: Copies the Packet header from the Buffer to the Packet
[Expand]
function TIP6Buffer.PutFragment(APacket:PIP6Packet; ABuffer:Pointer; AOffset,ASize,AFlags:Word):Boolean;
Description: Creates a new Fragment and copies the data from the Buffer to the Packet
Return to Unit Reference