TAdapterBuffer

From Ultibo.org
Jump to: navigation, search

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