Classe TRESTDWBuffer
Unit
Declaração
type TRESTDWBuffer = class(TObject)
Descrição
Hierarquia
- TObject
- TRESTDWBuffer
Visão Geral
Campos
![]() |
FBytes: TRESTDWBytes; |
![]() |
FSize: Integer; |
![]() |
FGrowthFactor: Integer; |
![]() |
FHeadIndex: Integer; |
![]() |
FOnBytesRemoved: TRESTDWBufferBytesRemoved; |
Métodos
![]() |
Procedure CheckAdd(AByteCount : Integer; Const AIndex : Integer); |
![]() |
Procedure CheckByteCount(Var VByteCount : Integer; Const AIndex : Integer); |
![]() |
Function GetCapacity: Integer; |
![]() |
Procedure SetCapacity(AValue : Integer); |
![]() |
Procedure Clear; |
![]() |
Constructor Create; Overload; |
![]() |
Constructor Create(AOnBytesRemoved : TRESTDWBufferBytesRemoved); Overload; |
![]() |
Constructor Create(AGrowthFactor : Integer); Overload; |
![]() |
Constructor Create(Const ABytes : TRESTDWBytes; Const ALength : Integer = -1); Overload; |
![]() |
Procedure CompactHead(ACanShrink : Boolean = True); |
![]() |
Destructor Destroy; override; |
![]() |
Function Extract(AByteCount : Integer = -1) : String; |
![]() |
Function ExtractToString(AByteCount : Integer = -1) : String; |
![]() |
Procedure ExtractToStream(Const AStream : TStream; AByteCount : Integer = -1; Const AIndex : Integer = -1); |
![]() |
Procedure ExtractToBuffer(ABuffer : TRESTDWBuffer; AByteCount : Integer = -1; Const AIndex : Integer = -1); |
![]() |
Procedure ExtractToBytes(Var VBytes : TRESTDWBytes; AByteCount : Integer = -1; AAppend : Boolean = True; AIndex : Integer = -1); |
![]() |
Function IndexOf(Const AByte : Byte; AStartPos : Integer = 0) : Integer; Overload; |
![]() |
Function IndexOf(Const ABytes : TRESTDWBytes; AStartPos : Integer = 0) : Integer; Overload; |
![]() |
Function IndexOf(Const AString : String; AStartPos : Integer = 0) : Integer; Overload; |
![]() |
Function PeekByte(AIndex : Integer) : Byte; |
![]() |
Procedure Remove(AByteCount : Integer); |
![]() |
Procedure SaveToStream(Const AStream : TStream); |
![]() |
Procedure Write(Const AString : String; Const ADestIndex : Integer = -1); Overload; |
![]() |
Procedure Write(Const ABytes : TRESTDWBytes; Const ADestIndex : Integer = -1); Overload; |
![]() |
Procedure Write(Const ABytes : TRESTDWBytes; Const ALength, AOffset : Integer; Const ADestIndex : Integer = -1); Overload; |
![]() |
Procedure Write(AStream : TStream; AByteCount : Integer = 0); Overload; |
Propriedades
![]() |
property Capacity : Integer Read GetCapacity Write SetCapacity; |
![]() |
property GrowthFactor : Integer Read FGrowthFactor Write FGrowthFactor; |
![]() |
property Size : Integer Read FSize; |
![]() |
property AsString : String Read GetAsString; |
Descrição
Campos
![]() |
FBytes: TRESTDWBytes; |
![]() |
FSize: Integer; |
![]() |
FGrowthFactor: Integer; |
![]() |
FHeadIndex: Integer; |
![]() |
FOnBytesRemoved: TRESTDWBufferBytesRemoved; |
Métodos
![]() |
Procedure CheckAdd(AByteCount : Integer; Const AIndex : Integer); |
![]() |
Procedure CheckByteCount(Var VByteCount : Integer; Const AIndex : Integer); |
![]() |
Function GetCapacity: Integer; |
![]() |
Procedure SetCapacity(AValue : Integer); |
![]() |
Procedure Clear; |
![]() |
Constructor Create; Overload; |
![]() |
Constructor Create(AOnBytesRemoved : TRESTDWBufferBytesRemoved); Overload; |
![]() |
Constructor Create(AGrowthFactor : Integer); Overload; |
![]() |
Constructor Create(Const ABytes : TRESTDWBytes; Const ALength : Integer = -1); Overload; |
![]() |
Procedure CompactHead(ACanShrink : Boolean = True); |
![]() |
Destructor Destroy; override; |
![]() |
Function Extract(AByteCount : Integer = -1) : String; |
![]() |
Function ExtractToString(AByteCount : Integer = -1) : String; |
![]() |
Procedure ExtractToStream(Const AStream : TStream; AByteCount : Integer = -1; Const AIndex : Integer = -1); |
![]() |
Procedure ExtractToBuffer(ABuffer : TRESTDWBuffer; AByteCount : Integer = -1; Const AIndex : Integer = -1); |
![]() |
Procedure ExtractToBytes(Var VBytes : TRESTDWBytes; AByteCount : Integer = -1; AAppend : Boolean = True; AIndex : Integer = -1); |
![]() |
Function IndexOf(Const AByte : Byte; AStartPos : Integer = 0) : Integer; Overload; |
![]() |
Function IndexOf(Const ABytes : TRESTDWBytes; AStartPos : Integer = 0) : Integer; Overload; |
![]() |
Function IndexOf(Const AString : String; AStartPos : Integer = 0) : Integer; Overload; |
![]() |
Function PeekByte(AIndex : Integer) : Byte; |
![]() |
Procedure Remove(AByteCount : Integer); |
![]() |
Procedure SaveToStream(Const AStream : TStream); |
![]() |
Procedure Write(Const AString : String; Const ADestIndex : Integer = -1); Overload; |
![]() |
Procedure Write(Const ABytes : TRESTDWBytes; Const ADestIndex : Integer = -1); Overload; |
![]() |
Procedure Write(Const ABytes : TRESTDWBytes; Const ALength, AOffset : Integer; Const ADestIndex : Integer = -1); Overload; |
![]() |
Procedure Write(AStream : TStream; AByteCount : Integer = 0); Overload; |
Propriedades
![]() |
property Capacity : Integer Read GetCapacity Write SetCapacity; |
![]() |
property GrowthFactor : Integer Read FGrowthFactor Write FGrowthFactor; |
![]() |
property Size : Integer Read FSize; |
![]() |
property AsString : String Read GetAsString; |
Gerado por PasDoc 0.16.0.