Difference between revisions of "TAdapterBuffer"

From Ultibo.org
Jump to: navigation, search
(Created page with "Return to Unit Network __TOC__ === Description === ---- ''To be documented'' === Class definitions === ---- <div class="toccolours mw-collapsible mw-co...")
 
(No difference)

Latest revision as of 07:16, 22 May 2018

Return to Unit Network


Description


To be documented

Class definitions



TAdapterBuffer = class(TObject)

Note: Ring buffer for Packets.
 
constructor Create;  
destructor Destroy; override;  
private
FLock:TCriticalSectionHandle;  
protected
FSize:Integer;  
FCount:Integer;  
FNextRead:Integer;  
FNextWrite:Integer;  
 
FList:TList;  
FMemory:TMemoryStream;  
 
function AcquireLock:Boolean;  
function ReleaseLock:Boolean;  
 
procedure SetSize(ASize:Integer);  
public
property Size:Integer read FSize write SetSize;  
 
function ReadNext:Pointer;  
function WriteNext:Pointer;  


Function declarations



constructor TAdapterBuffer.Create;
Description: To be documented
Note None documented


destructor TAdapterBuffer.Destroy;
Description: To be documented
Note None documented


function TAdapterBuffer.AcquireLock:Boolean;
Description: To be documented
Note None documented


function TAdapterBuffer.ReleaseLock:Boolean;
Description: To be documented
Note None documented


procedure TAdapterBuffer.SetSize(ASize:Integer);
Description: To be documented
Note None documented


function TAdapterBuffer.ReadNext:Pointer;
Description: To be documented
Note None documented


function TAdapterBuffer.WriteNext:Pointer;
Description: To be documented
Note None documented


Return to Unit Reference